Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
#include <mitkMaterial.h>
Public Types | |
enum | InterpolationType { Flat, Gouraud, Phong } |
enum | RepresentationType { Points, Wireframe, Surface } |
typedef Material | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::RGBPixel< double > | Color |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
virtual bool | Assignable (const Material &other) const |
virtual Material & | operator= (const Material &other) |
virtual void | SetColor (Color color) |
virtual void | SetColor (double red, double green, double blue) |
virtual void | SetColorCoefficient (double coefficient) |
virtual void | SetSpecularColor (Color color) |
virtual void | SetSpecularColor (double red, double green, double blue) |
virtual void | SetSpecularCoefficient (double specularCoefficient) |
virtual void | SetSpecularPower (double specularPower) |
virtual void | SetOpacity (double opacity) |
virtual void | SetInterpolation (InterpolationType interpolation) |
virtual void | SetRepresentation (RepresentationType representation) |
virtual void | SetLineWidth (float lineWidth) |
virtual Color | GetColor () const |
virtual double | GetColorCoefficient () const |
virtual Color | GetSpecularColor () const |
virtual double | GetSpecularCoefficient () const |
virtual double | GetSpecularPower () const |
virtual double | GetOpacity () const |
virtual InterpolationType | GetInterpolation () const |
virtual RepresentationType | GetRepresentation () const |
virtual int | GetVtkInterpolation () const |
virtual int | GetVtkRepresentation () const |
virtual float | GetLineWidth () const |
virtual void | Initialize (const Material &property) |
virtual bool | operator== (const Material &property) const |
void | PrintSelf (std::ostream &os, itk::Indent) const override |
virtual void | SetName (std::string _arg) |
virtual std::string | GetName () const |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
static Pointer | New (Color color, double opacity=1.0f) |
static Pointer | New (double red, double green, double blue, double opacity=1.0f) |
static Pointer | New (double red, double green, double blue, double colorCoefficient, double specularCoefficient, double specularPower, double opacity) |
static Pointer | New (Color color, double colorCoefficient, double specularCoefficient, double specularPower, double opacity) |
static Pointer | New (const Material &_arg) |
static Pointer | New (const Material &property, double red, double green, double blue, double opacity=1.0, std::string name="") |
Protected Member Functions | |
Material () | |
Material (Color color, double opacity=1.0f) | |
Material (double red, double green, double blue, double opacity=1.0f) | |
Material (double red, double green, double blue, double colorCoefficient, double specularCoefficient, double specularPower, double opacity) | |
Material (Color color, double colorCoefficient, double specularCoefficient, double specularPower, double opacity) | |
Material (const Material &property) | |
Material (const Material &property, double red, double green, double blue, double opacity=1.0, std::string name="") | |
virtual void | InitializeStandardValues () |
virtual void | Update () |
Protected Attributes | |
std::string | m_Name |
Color | m_Color |
Color | m_SpecularColor |
double | m_ColorCoefficient |
double | m_SpecularCoefficient |
double | m_SpecularPower |
double | m_Opacity |
float | m_LineWidth |
InterpolationType | m_Interpolation |
RepresentationType | m_Representation |
Encapsulates 3D visualization properties which are forwarded to vtk for color mapping. This includes color, specular coefficient and power, opacity interpolation type (flat, gouraud, phong) and representation (points, wireframe or surface).
Definition at line 34 of file mitkMaterial.h.
typedef itk::RGBPixel<double> mitk::Material::Color |
Definition at line 37 of file mitkMaterial.h.
typedef itk::SmartPointer<const Self> mitk::Material::ConstPointer |
Definition at line 37 of file mitkMaterial.h.
typedef itk::SmartPointer<Self> mitk::Material::Pointer |
Definition at line 37 of file mitkMaterial.h.
typedef Material mitk::Material::Self |
Definition at line 37 of file mitkMaterial.h.
typedef itk::Object mitk::Material::Superclass |
Definition at line 37 of file mitkMaterial.h.
Enumerator | |
---|---|
Flat | |
Gouraud | |
Phong |
Definition at line 41 of file mitkMaterial.h.
Enumerator | |
---|---|
Points | |
Wireframe | |
Surface |
Definition at line 48 of file mitkMaterial.h.
|
protected |
Constructor. Materials are set to the following default values: Color (0.5, 0.5, 0.5) color coefficient 1.0, specular color (1.0, 1.0, 1.0), specular coefficient 1.0, specular power 10, opacity 1.0, interpolation Gouraud, representation Surface.
|
protected |
Constructor. All values besides the given ones are set to defaults as described in the default constructor
color | the material color in RGB. Each RGB value should be in the range [0..1] |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
|
protected |
Constructor. All values besides the given ones are set to defaults as described in the default constructor
red | the red component of the materials color (range [0..1]) |
green | the green component of the materials color (range [0..1]) |
blue | the blue component of the materials color (range [0..1]) |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
|
protected |
Constructor. All values besides the given ones are set to defaults as described in the default constructor
red | the red component of the materials color (range [0..1]) |
green | the green component of the materials color (range [0..1]) |
blue | the blue component of the materials color (range [0..1]) |
colorCoefficient | a scaling factor for the color coefficient which will be multiplied with each color component (range [0..1]). |
specularCoefficient | controls in combination with the specular power how shiny the material will appear (range [0..1]). |
specularPower | controls in combination with the specular coefficient how shiny the material will appear (range [0..inf]). |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
|
protected |
Constructor. All values besides the given ones are set to defaults as described in the default constructor
color | the material color in RGB. Each RGB value should be in the range [0..1] |
colorCoefficient | a scaling factor for the color coefficient which will be multiplied with each color component (range [0..1]). |
specularCoefficient | controls in combination with the specular power how shiny the material will appear (range [0..1]). |
specularPower | controls in combination with the specular coefficient how shiny the material will appear (range [0..inf]). |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
|
protected |
Copy constructor
|
protected |
Copy constructor, provided for convenience. The values are copied from property and afterwards the values provided for red green blue and opacity are written into the object.
|
virtual |
|
inlinevirtual |
Definition at line 37 of file mitkMaterial.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
returns the name associated with the material property
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinestatic |
Definition at line 37 of file mitkMaterial.h.
|
virtual |
|
virtual |
|
virtual |
Fills the current materials with the properties of the given material.
property | the materials which should be copied in the current materials |
|
protectedvirtual |
|
inlinestatic |
Constructor. Materials are set to the following default values: Color (0.5, 0.5, 0.5) color coefficient 1.0, specular color (1.0, 1.0, 1.0), specular coefficient 1.0, specular power 10, opacity 1.0, interpolation Gouraud, representation Surface.
Definition at line 61 of file mitkMaterial.h.
|
inlinestatic |
Constructor. All values besides the given ones are set to defaults as described in the default constructor
color | the material color in RGB. Each RGB value should be in the range [0..1] |
colorCoefficient | a scaling factor for the color coefficient which will be multiplied with each color component (range [0..1]). |
specularCoefficient | controls in combination with the specular power how shiny the material will appear (range [0..1]). |
specularPower | controls in combination with the specular coefficient how shiny the material will appear (range [0..inf]). |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
Definition at line 142 of file mitkMaterial.h.
Constructor. All values besides the given ones are set to defaults as described in the default constructor
color | the material color in RGB. Each RGB value should be in the range [0..1] |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
Definition at line 76 of file mitkMaterial.h.
Copy constructor
Definition at line 153 of file mitkMaterial.h.
|
inlinestatic |
Copy constructor, provided for convenience. The values are copied from property and afterwards the values provided for red green blue and opacity are written into the object.
Definition at line 159 of file mitkMaterial.h.
|
inlinestatic |
Constructor. All values besides the given ones are set to defaults as described in the default constructor
red | the red component of the materials color (range [0..1]) |
green | the green component of the materials color (range [0..1]) |
blue | the blue component of the materials color (range [0..1]) |
colorCoefficient | a scaling factor for the color coefficient which will be multiplied with each color component (range [0..1]). |
specularCoefficient | controls in combination with the specular power how shiny the material will appear (range [0..1]). |
specularPower | controls in combination with the specular coefficient how shiny the material will appear (range [0..inf]). |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
Definition at line 114 of file mitkMaterial.h.
|
inlinestatic |
Constructor. All values besides the given ones are set to defaults as described in the default constructor
red | the red component of the materials color (range [0..1]) |
green | the green component of the materials color (range [0..1]) |
blue | the blue component of the materials color (range [0..1]) |
opacity | the opacity of the material. 0.0 means fully transparent and 1.0 means solid. |
Definition at line 92 of file mitkMaterial.h.
|
virtual |
comparison operator which uses the member variables for comparison
|
override |
Dumps the properties to the out stream out
|
virtual |
|
virtual |
Sets the materials color in RGB space. The rgb components have to be in the range [0..1]
red | the red component of the materials color (range [0..1]) |
green | the green component of the materials color (range [0..1]) |
blue | the blue component of the materials color (range [0..1]) |
|
virtual |
Sets a attenuation coefficient for the color. A value of 0 results in a black object. VAlid range is [0..1]
coefficient | the color attenuation coefficient |
|
virtual |
Sets the surface interpolation method of the object rendered using the given materials. Valid Interopation types are Flat, Gouraud and Phong. See any computer graphics book for their meaning
interpolation | the interpolation method used for rendering of surfaces. |
|
virtual |
Set/Get the width of a Line. The width is expressed in screen units. The default is 1.0.
|
virtual |
Sets an optional name which may be associated with the material property Please note, that this name is NOT forwarded to the data tree node as the node name
|
virtual |
Sets the opacity of the material, which controls how transparent the object appears. Valid range is [0..1], where 0 means fully transparent and 1 means a solid surface.
opacity | the new opacity of the material |
|
virtual |
Sets the surface representation method of the object rendered using the given materials. Valid Interopation types are Points, Wireframe and Surface.
representation | the representation method used for rendering of surfaces. |
|
virtual |
Sets the specular coefficient which controls the shininess of the object together with the specular power
specularCoefficient | the new specular coefficient. Valid range is [0..1] |
|
virtual |
Sets the specular color
color | the specular color in RGB. Each RGB value should be in the range [0..1] |
|
virtual |
Sets the specular color
red | the red component of the specular color (range [0..1]) |
green | the green component of the specular color (range [0..1]) |
blue | the blue component of the specular color (range [0..1]) |
|
virtual |
Sets the specular power which controls the shininess of the object together with the specular coefficient
specularPower | the new specular coefficient. Valid range is [0..inf] |
|
protectedvirtual |
|
protected |
Definition at line 431 of file mitkMaterial.h.
|
protected |
Definition at line 435 of file mitkMaterial.h.
|
protected |
Definition at line 445 of file mitkMaterial.h.
|
protected |
Definition at line 443 of file mitkMaterial.h.
|
protected |
Definition at line 429 of file mitkMaterial.h.
|
protected |
Definition at line 441 of file mitkMaterial.h.
|
protected |
Definition at line 447 of file mitkMaterial.h.
|
protected |
Definition at line 437 of file mitkMaterial.h.
|
protected |
Definition at line 433 of file mitkMaterial.h.
|
protected |
Definition at line 439 of file mitkMaterial.h.