VTK
Public Member Functions | List of all members
vtkColor4f Class Reference

#include <vtkColor.h>

Inheritance diagram for vtkColor4f:
[legend]
Collaboration diagram for vtkColor4f:
[legend]

Public Member Functions

 vtkColor4f ()
 
 vtkColor4f (float scalar)
 
 vtkColor4f (const float *init)
 
 vtkColor4f (float r, float g, float b, float a=1.0)
 
- Public Member Functions inherited from vtkColor4< float >
 vtkColor4 ()
 
 vtkColor4 (const float &scalar)
 
 vtkColor4 (const float *init)
 
 vtkColor4 (const float &red, const float &green, const float &blue, const float &alpha)
 
void SetRed (const float &red)
 Set the red component of the color, i.e. More...
 
const floatGetRed () const
 Get the red component of the color, i.e. More...
 
void SetGreen (const float &green)
 Set the green component of the color, i.e. More...
 
const floatGetGreen () const
 Get the green component of the color, i.e. More...
 
void SetBlue (const float &blue)
 Set the blue component of the color, i.e. More...
 
const floatGetBlue () const
 Get the blue component of the color, i.e. More...
 
void SetAlpha (const float &alpha)
 Set the alpha component of the color, i.e. More...
 
const floatGetAlpha () const
 Get the alpha component of the color, i.e. More...
 
void Set (const float &red, const float &green, const float &blue)
 Set the red, green and blue components of the color. More...
 
void Set (const float &red, const float &green, const float &blue, const float &alpha)
 Set the red, green, blue and alpha components of the color. More...
 
- Public Member Functions inherited from vtkTuple< float, 4 >
 vtkTuple ()
 The default constructor does not initialize values. More...
 
 vtkTuple (const float &scalar)
 Initialize all of the tuple's elements with the supplied scalar. More...
 
 vtkTuple (const float *init)
 Initialize the tuple's elements with the elements of the supplied array. More...
 
int GetSize () const
 Get the size of the tuple. More...
 
floatGetData ()
 Get a pointer to the underlying data of the tuple. More...
 
const floatGetData () const
 
floatoperator[] (int i)
 Get a reference to the underlying data element of the tuple. More...
 
const floatoperator[] (int i) const
 
float operator() (int i) const
 Get the value of the tuple at the index specified. More...
 
bool Compare (const vtkTuple< float, Size > &other, const float &tol) const
 Equality operator with a tolerance to allow fuzzy comparisons. More...
 
vtkTuple< TR, Size > Cast () const
 Cast the tuple to the specified type, returning the result. More...
 

Additional Inherited Members

- Protected Attributes inherited from vtkTuple< float, 4 >
float Data [Size]
 The only thing stored in memory! More...
 

Detailed Description

Definition at line 274 of file vtkColor.h.

Constructor & Destructor Documentation

vtkColor4f::vtkColor4f ( )
inline

Definition at line 277 of file vtkColor.h.

vtkColor4f::vtkColor4f ( float  scalar)
inlineexplicit

Definition at line 278 of file vtkColor.h.

vtkColor4f::vtkColor4f ( const float init)
inlineexplicit

Definition at line 279 of file vtkColor.h.

vtkColor4f::vtkColor4f ( float  r,
float  g,
float  b,
float  a = 1.0 
)
inline

Definition at line 280 of file vtkColor.h.


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