VISU_CutLinesPL Class Reference

#include <VISU_CutLinesPL.hxx>

Inheritance diagram for VISU_CutLinesPL:

Inheritance graph

Public Types

enum  PlaneOrientation { XY, YZ, ZX }
typedef TVTKSmartPtr< VISU_PipeLineTPipeLine
typedef std::vector< TPipeLineTPipeLines
typedef vtkMapper TMapper

Public Member Functions

 vtkTypeMacro (VISU_CutLinesPL, VISU_CutPlanesPL)
virtual void ShallowCopy (VISU_PipeLine *thePipeLine)
virtual void SetPosition (vtkFloatingPointType thePosition)
virtual vtkFloatingPointType GetPosition ()
virtual void SetDefault ()
virtual int IsDefault ()
virtual void Init ()
virtual void Update ()
const vtkFloatingPointType * GetDirLn ()
const vtkFloatingPointType * GetRealDirLn ()
const vtkFloatingPointType * GetBoundPrjLn ()
const vtkFloatingPointType * GetBasePnt ()
 vtkTypeMacro (VISU_CutPlanesPL, VISU_PrsMergerPL)
 vtkTypeMacro (VISU_PrsMergerPL, TSupperClass)
 vtkTypeMacro (VISU_ScalarMapPL, VISU_PipeLine)
 vtkTypeMacro (VISU_PipeLine, vtkObject)
virtual void SetOrientation (const VISU_CutPlanesPL::PlaneOrientation &theOrient, vtkFloatingPointType theXAng, vtkFloatingPointType theYAng, int theNum=0)
virtual const PlaneOrientationGetPlaneOrientation (int theNum=0)
virtual vtkFloatingPointType GetRotateX (int theNum=0)
virtual vtkFloatingPointType GetRotateY (int theNum=0)
virtual vtkFloatingPointType GetDisplacement (int theNum=0)
virtual void SetDisplacement (vtkFloatingPointType theDisp, int theNum=0)
virtual void SetPartPosition (int thePartNumber, vtkFloatingPointType thePartPosition)
virtual vtkFloatingPointType GetPartPosition (int thePartNumber, int theNum=0)
virtual void SetPartDefault (int thePartNumber)
virtual int IsPartDefault (int thePartNumber)
virtual void SetNbParts (int theNb)
virtual int GetNbParts ()
virtual vtkAppendPolyData * GetAppendPolyData ()
virtual bool SetGeometry (VISU_PipeLine *theGeometry, bool theUpdate=true)
virtual int AddBackGeometry (VISU_PipeLine *theGeometry, bool theUpdate=true)
virtual int GetGeometryNumber (VISU_PipeLine *theGeometry)
virtual void RemoveGeometryById (int theId)
virtual void RemoveAllGeom ()
virtual VISU_PipeLineGetGeometry (int theId=0)
virtual int GetNbGeometry ()
virtual bool SetScalars (VISU_PipeLine *theInput, bool theUpdate=false)
virtual VISU_PipeLineGetScalars ()
virtual void Build ()
void SetInitialRange ()
virtual int GetScalarMode ()
virtual void SetScalarMode (int theScalarMode=0)
virtual int GetScaling ()
virtual void SetScaling (int theScaling=VTK_SCALE_LINEAR)
virtual vtkFloatingPointType * GetScalarRange ()
virtual void SetScalarRange (vtkFloatingPointType theRange[2])
virtual void SetScalarMin (vtkFloatingPointType theValue)
virtual void SetScalarMax (vtkFloatingPointType theValue)
virtual void SetNbColors (int theNbColors=16)
virtual int GetNbColors ()
virtual VISU_LookupTableGetMapperTable ()
virtual VISU_LookupTableGetBarTable ()
virtual void SetMapScale (vtkFloatingPointType theMapScale=1.0)
virtual vtkFloatingPointType GetMapScale ()
virtual void GetSourceRange (vtkFloatingPointType theRange[2])
virtual void SetSourceRange ()
virtual void DebugOn ()
virtual void DebugOff ()
virtual void SameAs (VISU_PipeLine *thePipeLine)
virtual void SetInput (TInput *theInput)
virtual TInputGetInput () const
virtual vtkDataSet * GetOutput ()
bool IsPlanarInput () const
virtual TMapperGetMapper ()
void RemoveAllClippingPlanes ()
vtkIdType GetNumberOfClippingPlanes () const
bool AddClippingPlane (vtkPlane *thePlane)
vtkPlaneGetClippingPlane (vtkIdType theID) const
void SetPlaneParam (vtkFloatingPointType theDir[3], vtkFloatingPointType theDist, vtkPlane *thePlane)
void GetPlaneParam (vtkFloatingPointType theDir[3], vtkFloatingPointType &theDist, vtkPlane *thePlane)
bool IsShrinkable ()
virtual vtkIdType GetNodeObjID (vtkIdType theID)
virtual vtkIdType GetNodeVTKID (vtkIdType theID)
virtual vtkFloatingPointType * GetNodeCoord (vtkIdType theObjID)
virtual vtkIdType GetElemObjID (vtkIdType theID)
virtual vtkIdType GetElemVTKID (vtkIdType theID)
virtual vtkCell * GetElemCell (vtkIdType theObjID)
void SetIDMapper (const VISU::PIDMapper &theIDMapper)
const VISU::PIDMapperGetIDMapper () const
void SetImplicitFunction (vtkImplicitFunction *theFunction)
vtkImplicitFunctionGetImplicitFunction ()
SALOME_ExtractGeometryGetExtractGeometryFilter ()

Static Public Member Functions

static VISU_CutLinesPLNew ()
static void CutWithPlanes (vtkAppendPolyData *theAppendPolyData, vtkDataSet *theDataSet, int theNbPlanes, vtkFloatingPointType theDir[3], vtkFloatingPointType theBounds[6], vtkFloatingPointType thePlanePosition, int thePlaneCondition, vtkFloatingPointType theDisplacement)
static vtkFloatingPointType * GetRx (vtkFloatingPointType theRx[3][3], vtkFloatingPointType thaAng)
static vtkFloatingPointType * GetRy (vtkFloatingPointType theRy[3][3], vtkFloatingPointType thaAng)
static vtkFloatingPointType * GetRz (vtkFloatingPointType theRz[3][3], vtkFloatingPointType thaAng)
static void CorrectPnt (vtkFloatingPointType thePnt[3], const vtkFloatingPointType BoundPrj[6])
static void GetBoundProject (vtkFloatingPointType BoundPrj[3], const vtkFloatingPointType BoundBox[6], const vtkFloatingPointType Dir[3])
static void GetDir (vtkFloatingPointType theDir[3], const vtkFloatingPointType theAng[3], const PlaneOrientation &theBasePlane)
static void ClearAppendPolyData (vtkAppendPolyData *theAppendPolyData)
static void CutWithPlane (vtkAppendPolyData *theAppendPolyData, vtkDataSet *theDataSet, vtkFloatingPointType theDir[3], vtkFloatingPointType theOrig[3])
static void CutWithPlanes (vtkAppendPolyData *theAppendPolyData, vtkDataSet *theDataSet, int theNbPlanes, vtkFloatingPointType theDir[3], vtkFloatingPointType theBounds[6], const std::vector< vtkFloatingPointType > &thePlanePosition, const std::vector< int > &thePlaneCondition, vtkFloatingPointType theDisplacement)
static int CheckAvailableMemory (const vtkFloatingPointType &theSize)
static vtkFloatingPointType GetAvailableMemory (vtkFloatingPointType theSize=16 *1024 *1024.0, vtkFloatingPointType theMinSize=1024 *1024.0)

Protected Types

typedef vtkDataSet THook

Protected Member Functions

 VISU_CutLinesPL ()
 VISU_CutLinesPL (const VISU_CutLinesPL &)
void SetPartPosition (int theNum=0)
virtual THookDoHook ()
virtual TInputGetInput2 () const

Protected Attributes

vtkFloatingPointType myDirLn [3]
vtkFloatingPointType myRealDirLn [3]
vtkFloatingPointType myBoundPrjLn [3]
vtkFloatingPointType myBasePnt [3]
vtkFloatingPointType myPosition
int myCondition
int myNbParts
PlaneOrientation myBasePlane [2]
vtkFloatingPointType myAng [2][3]
vtkFloatingPointType myDisplacement [2]
vtkAppendPolyData * myAppendPolyData
std::vector< vtkFloatingPointType > myPartPosition
std::vector< int > myPartCondition
TPipeLines myMeshGeometryList
vtkSmartPointer< VISU_AppendFiltermyAppendFilter
vtkSmartPointer< VISU_MergeFiltermyMergeFilter
vtkFloatingPointType * myScalarRanges
TPipeLine myScalars
VISU_LookupTablemyMapperTable
VISU_LookupTablemyBarTable
VISU_FieldTransformmyFieldTransform
VISU_ExtractormyExtractor
bool myIsShrinkable
TVTKSmartPtr< TInputmyInput
VISU::PIDMapper myIDMapper
TVTKSmartPtr< vtkDataSetMapper > myMapper
TVTKSmartPtr< SALOME_ExtractGeometrymyExtractGeometry

Member Typedef Documentation

typedef TVTKSmartPtr<VISU_PipeLine> VISU_PrsMergerPL.TPipeLine [inherited]
 

typedef std::vector<TPipeLine> VISU_PrsMergerPL.TPipeLines [inherited]
 

typedef vtkDataSet VISU_ScalarMapPL.THook [protected, inherited]
 

typedef vtkMapper VISU_PipeLine.TMapper [inherited]
 


Member Enumeration Documentation

enum VISU_CutPlanesPL::PlaneOrientation [inherited]
 

Enumerator:
XY 
YZ 
ZX 


Constructor & Destructor Documentation

VISU_CutLinesPL::VISU_CutLinesPL  )  [protected]
 

VISU_CutLinesPL.VISU_CutLinesPL const VISU_CutLinesPL  )  [protected]
 


Member Function Documentation

VISU_CutLinesPL.vtkTypeMacro VISU_CutLinesPL  ,
VISU_CutPlanesPL 
 

static VISU_CutLinesPL* VISU_CutLinesPL.New  )  [static]
 

Reimplemented from VISU_CutPlanesPL.

void VISU_CutLinesPL::ShallowCopy VISU_PipeLine thePipeLine  )  [virtual]
 

Reimplemented from VISU_CutPlanesPL.

void VISU_CutLinesPL::SetPosition vtkFloatingPointType  thePosition  )  [virtual]
 

vtkFloatingPointType VISU_CutLinesPL::GetPosition  )  [virtual]
 

void VISU_CutLinesPL::SetDefault  )  [virtual]
 

int VISU_CutLinesPL::IsDefault  )  [virtual]
 

void VISU_CutLinesPL::Init  )  [virtual]
 

Reimplemented from VISU_CutPlanesPL.

void VISU_CutLinesPL::Update  )  [virtual]
 

Calculate presentation, by merging of Geometry and Scalar Values.

Reimplemented from VISU_CutPlanesPL.

void VISU_CutLinesPL::CutWithPlanes vtkAppendPolyData *  theAppendPolyData,
vtkDataSet *  theDataSet,
int  theNbPlanes,
vtkFloatingPointType  theDir[3],
vtkFloatingPointType  theBounds[6],
vtkFloatingPointType  thePlanePosition,
int  thePlaneCondition,
vtkFloatingPointType  theDisplacement
[static]
 

const vtkFloatingPointType* VISU_CutLinesPL.GetDirLn  ) 
 

const vtkFloatingPointType* VISU_CutLinesPL.GetRealDirLn  ) 
 

const vtkFloatingPointType* VISU_CutLinesPL.GetBoundPrjLn  ) 
 

const vtkFloatingPointType* VISU_CutLinesPL.GetBasePnt  ) 
 

VISU_CutPlanesPL.vtkTypeMacro VISU_CutPlanesPL  ,
VISU_PrsMergerPL 
[inherited]
 

VISU_PrsMergerPL.vtkTypeMacro VISU_PrsMergerPL  ,
TSupperClass 
[inherited]
 

VISU_ScalarMapPL.vtkTypeMacro VISU_ScalarMapPL  ,
VISU_PipeLine 
[inherited]
 

VISU_PipeLine.vtkTypeMacro VISU_PipeLine  ,
vtkObject 
[inherited]
 

void VISU_CutPlanesPL::SetOrientation const VISU_CutPlanesPL::PlaneOrientation theOrient,
vtkFloatingPointType  theXAng,
vtkFloatingPointType  theYAng,
int  theNum = 0
[virtual, inherited]
 

const VISU_CutPlanesPL::PlaneOrientation & VISU_CutPlanesPL::GetPlaneOrientation int  theNum = 0  )  [virtual, inherited]
 

vtkFloatingPointType VISU_CutPlanesPL::GetRotateX int  theNum = 0  )  [virtual, inherited]
 

vtkFloatingPointType VISU_CutPlanesPL::GetRotateY int  theNum = 0  )  [virtual, inherited]
 

virtual vtkFloatingPointType VISU_CutPlanesPL.GetDisplacement int  theNum = 0  )  [virtual, inherited]
 

virtual void VISU_CutPlanesPL.SetDisplacement vtkFloatingPointType  theDisp,
int  theNum = 0
[virtual, inherited]
 

void VISU_CutPlanesPL::SetPartPosition int  thePartNumber,
vtkFloatingPointType  thePartPosition
[virtual, inherited]
 

void VISU_CutPlanesPL::SetPartPosition int  theNum = 0  )  [protected, inherited]
 

vtkFloatingPointType VISU_CutPlanesPL::GetPartPosition int  thePartNumber,
int  theNum = 0
[virtual, inherited]
 

void VISU_CutPlanesPL::SetPartDefault int  thePartNumber  )  [virtual, inherited]
 

int VISU_CutPlanesPL::IsPartDefault int  thePartNumber  )  [virtual, inherited]
 

void VISU_CutPlanesPL::SetNbParts int  theNb  )  [virtual, inherited]
 

The number of cut planes can be defined under existing conditions [1,100]. If setting value less than 1, the number of planes wil be setted to 1, and if value more than 100, the number of planes wil be setted to 100.

virtual int VISU_CutPlanesPL.GetNbParts  )  [virtual, inherited]
 

virtual vtkAppendPolyData* VISU_CutPlanesPL.GetAppendPolyData  )  [virtual, inherited]
 

vtkFloatingPointType * VISU_CutPlanesPL::GetRx vtkFloatingPointType  theRx[3][3],
vtkFloatingPointType  thaAng
[static, inherited]
 

vtkFloatingPointType * VISU_CutPlanesPL::GetRy vtkFloatingPointType  theRy[3][3],
vtkFloatingPointType  thaAng
[static, inherited]
 

vtkFloatingPointType * VISU_CutPlanesPL::GetRz vtkFloatingPointType  theRz[3][3],
vtkFloatingPointType  thaAng
[static, inherited]
 

void VISU_CutPlanesPL::CorrectPnt vtkFloatingPointType  thePnt[3],
const vtkFloatingPointType  BoundPrj[6]
[static, inherited]
 

void VISU_CutPlanesPL::GetBoundProject vtkFloatingPointType  BoundPrj[3],
const vtkFloatingPointType  BoundBox[6],
const vtkFloatingPointType  Dir[3]
[static, inherited]
 

void VISU_CutPlanesPL::GetDir vtkFloatingPointType  theDir[3],
const vtkFloatingPointType  theAng[3],
const PlaneOrientation theBasePlane
[static, inherited]
 

void VISU_CutPlanesPL::ClearAppendPolyData vtkAppendPolyData *  theAppendPolyData  )  [static, inherited]
 

void VISU_CutPlanesPL::CutWithPlane vtkAppendPolyData *  theAppendPolyData,
vtkDataSet *  theDataSet,
vtkFloatingPointType  theDir[3],
vtkFloatingPointType  theOrig[3]
[static, inherited]
 

void VISU_CutPlanesPL::CutWithPlanes vtkAppendPolyData *  theAppendPolyData,
vtkDataSet *  theDataSet,
int  theNbPlanes,
vtkFloatingPointType  theDir[3],
vtkFloatingPointType  theBounds[6],
const std::vector< vtkFloatingPointType > &  thePlanePosition,
const std::vector< int > &  thePlaneCondition,
vtkFloatingPointType  theDisplacement
[static, inherited]
 

VISU_ScalarMapPL::THook * VISU_CutPlanesPL::DoHook  )  [protected, virtual, inherited]
 

Reimplemented from VISU_ScalarMapPL.

bool VISU_PrsMergerPL::SetGeometry VISU_PipeLine theGeometry,
bool  theUpdate = true
[virtual, inherited]
 

Add geometry of presentation to myMeshGeometryList. theGeometry - visu pipeline with geometry. theUpdate - update pipeline if true.

Return values:
TRUE - if geometry and scalars on the common mesh, esle FALSE.

int VISU_PrsMergerPL::AddBackGeometry VISU_PipeLine theGeometry,
bool  theUpdate = true
[virtual, inherited]
 

Add geometry to back of myMeshGeometryList. theInput - visu pipeline with geometry. theUpdate - update pipeline if true.

Return values:
index of added geometry. (must be >= 0)
-1,if geometry not added.

int VISU_PrsMergerPL::GetGeometryNumber VISU_PipeLine theGeometry  )  [virtual, inherited]
 

Get geometry id of myMeshGeometryList.

Return values:
index of geometry. (must be >= 0)
-1 - if geometry not exists.

void VISU_PrsMergerPL::RemoveGeometryById int  theId  )  [virtual, inherited]
 

Remove geometry with id = theId from myMeshGeometryList. the id in [0,...]

void VISU_PrsMergerPL::RemoveAllGeom  )  [virtual, inherited]
 

Removes all geometries.

VISU_PipeLine * VISU_PrsMergerPL::GetGeometry int  theId = 0  )  [virtual, inherited]
 

Gets geometry of presentation by id.

Return values:
VISU_MeshPL - pointer the id in [0,...]

int VISU_PrsMergerPL::GetNbGeometry  )  [virtual, inherited]
 

Gets number of geometrys

Return values:
int - number

bool VISU_PrsMergerPL::SetScalars VISU_PipeLine theInput,
bool  theUpdate = false
[virtual, inherited]
 

Sets scalar values and ids by VISU_ScalarMapPL object. theInput - visu pipeline with scalar values theUpdate - update pipeline if true.

Return values:
TRUE - if scalars and geometry on the common mesh, esle FALSE.

VISU_PipeLine * VISU_PrsMergerPL::GetScalars  )  [virtual, inherited]
 

Gets input VISU_ScalarMapPL, which contain scalar values and ids.

void VISU_PrsMergerPL::Build  )  [virtual, inherited]
 

Reimplemented from VISU_ScalarMapPL.

Reimplemented in VISU_ScalarMapOnDeformedShapePL.

void VISU_PrsMergerPL::SetInitialRange  )  [inherited]
 

Set ranges of scalar values by input myScalars ranges.

int VISU_ScalarMapPL::GetScalarMode  )  [virtual, inherited]
 

Reimplemented in VISU_ScalarMapOnDeformedShapePL.

void VISU_ScalarMapPL::SetScalarMode int  theScalarMode = 0  )  [virtual, inherited]
 

Reimplemented in VISU_ScalarMapOnDeformedShapePL.

int VISU_ScalarMapPL::GetScaling  )  [virtual, inherited]
 

void VISU_ScalarMapPL::SetScaling int  theScaling = VTK_SCALE_LINEAR  )  [virtual, inherited]
 

Reimplemented in VISU_IsoSurfacesPL.

vtkFloatingPointType * VISU_ScalarMapPL::GetScalarRange  )  [virtual, inherited]
 

void VISU_ScalarMapPL::SetScalarRange vtkFloatingPointType  theRange[2]  )  [virtual, inherited]
 

void VISU_ScalarMapPL::SetScalarMin vtkFloatingPointType  theValue  )  [virtual, inherited]
 

void VISU_ScalarMapPL::SetScalarMax vtkFloatingPointType  theValue  )  [virtual, inherited]
 

void VISU_ScalarMapPL::SetNbColors int  theNbColors = 16  )  [virtual, inherited]
 

int VISU_ScalarMapPL::GetNbColors  )  [virtual, inherited]
 

VISU_LookupTable * VISU_ScalarMapPL::GetMapperTable  )  [virtual, inherited]
 

VISU_LookupTable * VISU_ScalarMapPL::GetBarTable  )  [virtual, inherited]
 

void VISU_ScalarMapPL::SetMapScale vtkFloatingPointType  theMapScale = 1.0  )  [virtual, inherited]
 

Reimplemented in VISU_DeformedShapePL, VISU_GaussPointsPL, VISU_IsoSurfacesPL, VISU_Plot3DPL, VISU_ScalarMapOnDeformedShapePL, VISU_StreamLinesPL, and VISU_VectorsPL.

vtkFloatingPointType VISU_ScalarMapPL::GetMapScale  )  [virtual, inherited]
 

void VISU_ScalarMapPL::GetSourceRange vtkFloatingPointType  theRange[2]  )  [virtual, inherited]
 

Reimplemented in VISU_ScalarMapOnDeformedShapePL.

void VISU_ScalarMapPL::SetSourceRange  )  [virtual, inherited]
 

void VISU_PipeLine::DebugOn  )  [virtual, inherited]
 

void VISU_PipeLine::DebugOff  )  [virtual, inherited]