Open CASCADE Technology 7.9.0
 
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Loading...
Searching...
No Matches
IVtkTools Namespace Reference

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

Functions

vtkSmartPointer< 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,...)
 
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.
 
void GetLookupTableColor (vtkLookupTable *theColorTable, const IVtk_MeshType theColorRole, double &theR, double &theG, double &theB)
 Get a color for given type of sub-shapes.
 
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.
 
void InitShapeMapper (vtkMapper *theMapper)
 Set up the initial shape mapper parameters with default OCC colors.
 
void InitShapeMapper (vtkMapper *theMapper, vtkLookupTable *theColorTable)
 Set up the initial shape mapper parameters with user colors.
 

Detailed Description

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

Function Documentation

◆ GetLookupTableColor() [1/2]

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.

◆ GetLookupTableColor() [2/2]

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.

◆ InitLookupTable()

vtkSmartPointer< 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,...)

◆ InitShapeMapper() [1/2]

void IVtkTools::InitShapeMapper ( vtkMapper * theMapper)

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

◆ InitShapeMapper() [2/2]

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

◆ SetLookupTableColor()

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.