Open CASCADE Technology  7.0.0
Functions
IVtkTools Namespace Reference

Helper methods to facilitate usage of VIS classes in an application. More...

Functions

vtkLookupTable * InitLookupTable ()
 Returns vtkLookupTable instance initialized by standrad OCCT colors used in wireframe mode for different kinds of sub-shapes (free/boundary/shared edges, isolines,...) More...
 
void SetLookupTableColor (vtkLookupTable *theColorTable, const IVtk_MeshType theColorRole, const double theR, const double theG, const double theB, const double theA=1)
 Set a color for given type of sub-shapes. More...
 
void GetLookupTableColor (vtkLookupTable *theColorTable, const IVtk_MeshType theColorRole, double &theR, double &theG, double &theB)
 Get a color for given type of sub-shapes. More...
 
void GetLookupTableColor (vtkLookupTable *theColorTable, const IVtk_MeshType theColorRole, double &theR, double &theG, double &theB, double &theA)
 Get a color for given type of sub-shapes. More...
 
void InitShapeMapper (vtkMapper *theMapper)
 Set up the initial shape mapper parameters with default OCC colors. More...
 
void InitShapeMapper (vtkMapper *theMapper, vtkLookupTable *theColorTable)
 Set up the initial shape mapper parameters with user colors. More...
 

Detailed Description

Helper methods to facilitate usage of VIS classes in an application.

Function Documentation

void IVtkTools::GetLookupTableColor ( vtkLookupTable *  theColorTable,
const IVtk_MeshType  theColorRole,
double &  theR,
double &  theG,
double &  theB 
)

Get a color for given type of sub-shapes.

Parameters
[in]theColorTablevtkLookupTable to set the color.
[in]theColorRoletype of sub-shapes to set the color.
[out]theRred color component as a double between 0 and 1.
[out]theGgreen color component as a double between 0 and 1.
[out]theBblue color component as a double between 0 and 1.
void IVtkTools::GetLookupTableColor ( vtkLookupTable *  theColorTable,
const IVtk_MeshType  theColorRole,
double &  theR,
double &  theG,
double &  theB,
double &  theA 
)

Get a color for given type of sub-shapes.

Parameters
[in]theColorTablevtkLookupTable to set the color.
[in]theColorRoletype of sub-shapes to set the color.
[out]theRred color component as a double between 0 and 1.
[out]theGgreen color component as a double between 0 and 1.
[out]theBblue color component as a double between 0 and 1.
[out]theAthe alpha value (the opacity) as a double between 0 and 1.
vtkLookupTable* IVtkTools::InitLookupTable ( )

Returns vtkLookupTable instance initialized by standrad OCCT colors used in wireframe mode for different kinds of sub-shapes (free/boundary/shared edges, isolines,...)

void IVtkTools::InitShapeMapper ( vtkMapper *  theMapper)

Set up the initial shape mapper parameters with default OCC colors.

void IVtkTools::InitShapeMapper ( vtkMapper *  theMapper,
vtkLookupTable *  theColorTable 
)

Set up the initial shape mapper parameters with user colors.

Parameters
[in,out]theMappermapper to initialize
[in]theColorTablea table with user's colors definition
void IVtkTools::SetLookupTableColor ( vtkLookupTable *  theColorTable,
const IVtk_MeshType  theColorRole,
const double  theR,
const double  theG,
const double  theB,
const double  theA = 1 
)

Set a color for given type of sub-shapes.

Parameters
[in,out]theColorTablevtkLookupTable to set the color.
[in]theColorRoletype of sub-shapes to set the color.
[in]theRred color component. Use [0,1] double values.
[in]theGgreen color component. Use [0,1] double values.
[in]theBblue color component. Use [0,1] double values.
[in]theAthe alpha value (the opacity) as a double between 0 and 1.