Back to index

salome-gui  6.5.0
Public Member Functions | Public Attributes
VTK::TColors2Color Struct Reference
Inheritance diagram for VTK::TColors2Color:
Inheritance graph
Collaboration diagram for VTK::TColors2Color:
Collaboration graph

List of all members.

Public Member Functions

 TColors2Color (vtkProperty *theProperty, vtkUnsignedCharArray *theColors)
virtual void get (TVertex &theVertex, vtkIdType thePointId, vtkIdType theCellId)
virtual vtkIdType GetTupleId (vtkIdType thePointId, vtkIdType theCellId)=0

Public Attributes

vtkUnsignedCharArray * myColors
vtkFloatingPointType myAlpha

Detailed Description

Definition at line 354 of file VTKViewer_PolyDataMapper.cxx.

Constructor & Destructor Documentation

VTK::TColors2Color::TColors2Color ( vtkProperty *  theProperty,
vtkUnsignedCharArray *  theColors 
) [inline]

Definition at line 358 of file VTKViewer_PolyDataMapper.cxx.

      TColorFunctorBase( theProperty ),
      myColors( theColors )

Member Function Documentation

virtual void VTK::TColors2Color::get ( TVertex theVertex,
vtkIdType  thePointId,
vtkIdType  theCellId 
) [inline, virtual]

Implements VTK::TColorFunctorBase.

Definition at line 366 of file VTKViewer_PolyDataMapper.cxx.

      vtkIdType aTupleId = GetTupleId( thePointId, theCellId );
      unsigned char* aColor = myColors->GetPointer( aTupleId << 2 );

      theVertex.r = int( aColor[0] ) / 255.0;
      theVertex.g = int( aColor[1] ) / 255.0;
      theVertex.b = int( aColor[2] ) / 255.0;
      theVertex.a = myAlpha;

Here is the call graph for this function:

virtual vtkIdType VTK::TColors2Color::GetTupleId ( vtkIdType  thePointId,
vtkIdType  theCellId 
) [pure virtual]

Implemented in VTK::TCellColors2Color, and VTK::TPointColors2Color.

Here is the caller graph for this function:

Member Data Documentation

Definition at line 319 of file VTKViewer_PolyDataMapper.cxx.

vtkUnsignedCharArray* VTK::TColors2Color::myColors

Definition at line 356 of file VTKViewer_PolyDataMapper.cxx.

The documentation for this struct was generated from the following file: