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. | |
Helper methods to facilitate usage of VIS classes in an application.
| void IVtkTools::GetLookupTableColor | ( | vtkLookupTable * | theColorTable, |
| const IVtk_MeshType | theColorRole, | ||
| double & | theR, | ||
| double & | theG, | ||
| double & | theB ) |
Get a color for given type of sub-shapes.
| [in] | theColorTable | vtkLookupTable to set the color. |
| [in] | theColorRole | type of sub-shapes to set the color. |
| [out] | theR | red color component as a double between 0 and 1. |
| [out] | theG | green color component as a double between 0 and 1. |
| [out] | theB | blue 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.
| [in] | theColorTable | vtkLookupTable to set the color. |
| [in] | theColorRole | type of sub-shapes to set the color. |
| [out] | theR | red color component as a double between 0 and 1. |
| [out] | theG | green color component as a double between 0 and 1. |
| [out] | theB | blue color component as a double between 0 and 1. |
| [out] | theA | the alpha value (the opacity) as a double between 0 and 1. |
| 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,...)
| 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.
| [in,out] | theMapper | mapper to initialize |
| [in] | theColorTable | a 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.
| [in,out] | theColorTable | vtkLookupTable to set the color. |
| [in] | theColorRole | type of sub-shapes to set the color. |
| [in] | theR | red color component. Use [0,1] double values. |
| [in] | theG | green color component. Use [0,1] double values. |
| [in] | theB | blue color component. Use [0,1] double values. |
| [in] | theA | the alpha value (the opacity) as a double between 0 and 1. |