VTK  9.1.0
Public Member Functions | List of all members
vtkColor4< T > Class Template Reference

#include <vtkColor.h>

Inheritance diagram for vtkColor4< T >:
[legend]
Collaboration diagram for vtkColor4< T >:
[legend]

Public Member Functions

 vtkColor4 ()=default
 
 vtkColor4 (const T &scalar)
 
 vtkColor4 (const T *init)
 
 vtkColor4 (const T &red, const T &green, const T &blue, const T &alpha)
 
void SetRed (const T &red)
 Set the red component of the color, i.e.
 
const T & GetRed () const
 Get the red component of the color, i.e.
 
void SetGreen (const T &green)
 Set the green component of the color, i.e.
 
const T & GetGreen () const
 Get the green component of the color, i.e.
 
void SetBlue (const T &blue)
 Set the blue component of the color, i.e.
 
const T & GetBlue () const
 Get the blue component of the color, i.e.
 
void SetAlpha (const T &alpha)
 Set the alpha component of the color, i.e.
 
const T & GetAlpha () const
 Get the alpha component of the color, i.e.
 
void Set (const T &red, const T &green, const T &blue)
 Set the red, green and blue components of the color.
 
void Set (const T &red, const T &green, const T &blue, const T &alpha)
 Set the red, green, blue and alpha components of the color.
 
- Public Member Functions inherited from vtkTuple< T, 4 >
 vtkTuple ()=default
 The default constructor does not initialize values.
 
 vtkTuple (const T &scalar)
 Initialize all of the tuple's elements with the supplied scalar.
 
 vtkTuple (const T *init)
 Initialize the tuple's elements with the elements of the supplied array.
 
 vtkTuple (const std::array< T, Size > &values)
 Initialize the tuple's elements using a std::array for matching type and size.
 
int GetSize () const
 Get the size of the tuple.
 
T * GetData ()
 Get a pointer to the underlying data of the tuple.
 
const T * GetData () const
 
T & operator[] (int i)
 Get a reference to the underlying data element of the tuple.
 
const T & operator[] (int i) const
 
operator() (int i) const
 Get the value of the tuple at the index specified.
 
bool Compare (const vtkTuple< T, Size > &other, const T &tol) const
 Equality operator with a tolerance to allow fuzzy comparisons.
 
vtkTuple< TR, Size > Cast () const
 Cast the tuple to the specified type, returning the result.
 

Additional Inherited Members

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

Detailed Description

template<typename T>
class vtkColor4< T >

Definition at line 211 of file vtkColor.h.

Constructor & Destructor Documentation

◆ vtkColor4() [1/4]

template<typename T >
vtkColor4< T >::vtkColor4 ( )
default

◆ vtkColor4() [2/4]

template<typename T >
vtkColor4< T >::vtkColor4 ( const T &  scalar)
inlineexplicit

Definition at line 216 of file vtkColor.h.

◆ vtkColor4() [3/4]

template<typename T >
vtkColor4< T >::vtkColor4 ( const T *  init)
inlineexplicit

Definition at line 221 of file vtkColor.h.

◆ vtkColor4() [4/4]

template<typename T >
vtkColor4< T >::vtkColor4 ( const T &  red,
const T &  green,
const T &  blue,
const T &  alpha 
)
inline

Definition at line 226 of file vtkColor.h.

Member Function Documentation

◆ Set() [1/2]

template<typename T >
void vtkColor4< T >::Set ( const T &  red,
const T &  green,
const T &  blue 
)
inline

Set the red, green and blue components of the color.

Definition at line 238 of file vtkColor.h.

◆ Set() [2/2]

template<typename T >
void vtkColor4< T >::Set ( const T &  red,
const T &  green,
const T &  blue,
const T &  alpha 
)
inline

Set the red, green, blue and alpha components of the color.

Definition at line 250 of file vtkColor.h.

◆ SetRed()

template<typename T >
void vtkColor4< T >::SetRed ( const T &  red)
inline

Set the red component of the color, i.e.

element 0.

Definition at line 262 of file vtkColor.h.

◆ GetRed()

template<typename T >
const T & vtkColor4< T >::GetRed ( ) const
inline

Get the red component of the color, i.e.

element 0.

Definition at line 267 of file vtkColor.h.

◆ SetGreen()

template<typename T >
void vtkColor4< T >::SetGreen ( const T &  green)
inline

Set the green component of the color, i.e.

element 1.

Definition at line 272 of file vtkColor.h.

◆ GetGreen()

template<typename T >
const T & vtkColor4< T >::GetGreen ( ) const
inline

Get the green component of the color, i.e.

element 1.

Definition at line 277 of file vtkColor.h.

◆ SetBlue()

template<typename T >
void vtkColor4< T >::SetBlue ( const T &  blue)
inline

Set the blue component of the color, i.e.

element 2.

Definition at line 282 of file vtkColor.h.

◆ GetBlue()

template<typename T >
const T & vtkColor4< T >::GetBlue ( ) const
inline

Get the blue component of the color, i.e.

element 2.

Definition at line 287 of file vtkColor.h.

◆ SetAlpha()

template<typename T >
void vtkColor4< T >::SetAlpha ( const T &  alpha)
inline

Set the alpha component of the color, i.e.

element 3.

Definition at line 292 of file vtkColor.h.

◆ GetAlpha()

template<typename T >
const T & vtkColor4< T >::GetAlpha ( ) const
inline

Get the alpha component of the color, i.e.

element 3.

Definition at line 297 of file vtkColor.h.


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