Back to index

salome-gui  6.5.0
Functions | Variables
SVTK_CubeAxesActor2D.cxx File Reference
#include "SVTK_CubeAxesActor2D.h"
#include "VTKViewer_Transform.h"
#include <vtkPolyDataMapper.h>
#include <vtkRectilinearGridGeometryFilter.h>
#include <vtkActor.h>
#include <vtkCubeAxesActor2D.h>
#include <vtkAxisActor2D.h>
#include <vtkCamera.h>
#include <vtkDataSet.h>
#include <vtkMath.h>
#include <vtkObjectFactory.h>
#include <vtkTextProperty.h>
#include <vtkViewport.h>
#include <vtkFloatArray.h>
#include <vtkRectilinearGrid.h>
#include <vtkProperty.h>
#include <vtkProperty2D.h>

Go to the source code of this file.

Functions

 vtkCxxRevisionMacro (SVTK_CubeAxesActor2D,"$Revision: 1.6.2.1.8.3.2.1 $")
 vtkStandardNewMacro (SVTK_CubeAxesActor2D)
static void ChangeValues (vtkFloatingPointType *aArray1, vtkFloatingPointType *aArray2, vtkFloatingPointType *aRange1, vtkFloatingPointType *aRange2, bool theY)
static void ChangeArrays (vtkFloatingPointType *xCoords, vtkFloatingPointType *yCoords, vtkFloatingPointType *zCoords, vtkFloatingPointType *xRange, vtkFloatingPointType *yRange, vtkFloatingPointType *zRange, const int xAxes, const int yAxes, const int zAxes)

Variables

static int Conn [8][3]

Function Documentation

static void ChangeArrays ( vtkFloatingPointType xCoords,
vtkFloatingPointType yCoords,
vtkFloatingPointType zCoords,
vtkFloatingPointType xRange,
vtkFloatingPointType yRange,
vtkFloatingPointType zRange,
const int  xAxes,
const int  yAxes,
const int  zAxes 
) [static]

Definition at line 221 of file SVTK_CubeAxesActor2D.cxx.

{
  if ( xAxes == 0 && yAxes == 2 && zAxes == 1)
    ChangeValues(yCoords,zCoords,yRange,zRange,true);
  else if (xAxes == 1 && yAxes == 0 && zAxes == 2)
    ChangeValues(xCoords,yCoords,xRange,yRange,true);
  else if (xAxes == 1 && yAxes == 2 && zAxes == 0){
    ChangeValues(xCoords,zCoords,xRange,zRange,false);
    // xAxes == 0 && yAxes == 2 && zAxes == 1
    ChangeValues(yCoords,zCoords,yRange,zRange,true);
  } else if (xAxes == 2 && yAxes == 0 && zAxes == 1){
    ChangeValues(xCoords,yCoords,xRange,yRange,true);
    // xAxes == 0 && yAxes == 2 && zAxes == 1
    ChangeValues(zCoords,yCoords,zRange,yRange,true);
  } else if (xAxes == 2 && yAxes == 1 && zAxes == 0)
    ChangeValues(zCoords,xCoords,zRange,xRange,false);
}

Here is the call graph for this function:

static void ChangeValues ( vtkFloatingPointType aArray1,
vtkFloatingPointType aArray2,
vtkFloatingPointType aRange1,
vtkFloatingPointType aRange2,
bool  theY 
) [static]

Definition at line 195 of file SVTK_CubeAxesActor2D.cxx.

{
  vtkFloatingPointType tmp=-1000;
  if (!theY){
    for (int i=0; i<4; i++){
      tmp = aArray1[i]; aArray1[i] = aArray2[i]; aArray2[i] = tmp;
    }
    for(int i=0;i<2; i++){
      tmp = aRange1[i]; aRange1[i] = aRange2[i]; aRange2[i] = tmp;
    }
  }
  else{
    tmp = aArray1[2]; aArray1[2] = aArray2[0]; aArray2[0] = tmp;
    tmp = aArray1[3]; aArray1[3] = aArray2[1]; aArray2[1] = tmp;
    tmp = aArray1[0]; aArray1[0] = aArray2[2]; aArray2[2] = tmp;
    tmp = aArray1[1]; aArray1[1] = aArray2[3]; aArray2[3] = tmp;

    tmp = aRange1[0]; aRange1[0] = aRange2[1]; aRange2[1] = tmp;
    tmp = aRange1[1]; aRange1[1] = aRange2[0]; aRange2[0] = tmp;
  }
}

Here is the caller graph for this function:

vtkCxxRevisionMacro ( SVTK_CubeAxesActor2D  ,
"$Revision: 1.6.2.1.8.3.2.1 $"   
)
vtkStandardNewMacro ( SVTK_CubeAxesActor2D  )

Variable Documentation

int Conn[8][3] [static]
Initial value:
 {{1,2,4}, {0,3,5}, {3,0,6}, {2,1,7},
                         {5,6,0}, {4,7,1}, {7,4,2}, {6,5,3}}

Definition at line 146 of file SVTK_CubeAxesActor2D.cxx.