#include <mitkSurfaceProperty.h>
Inherits mitkObject.
Inheritance diagram for mitkSurfaceProperty:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
mitkSurfaceProperty () | |
bool | IsModified () const |
void | SetUnmodified () |
void | SetInterpolationType (int intpType) |
int | GetInterpolationType () const |
void | SetInterpolationTypeToFlat () |
void | SetInterpolationTypeToGouraud () |
void | SetInterpolationTypeToPhong () |
const char * | GetInterpolationTypeAsString () const |
void | SetRepresentationType (int repType) |
int | GetRepresentationType () const |
void | SetRepresentationTypeToPoints () |
void | SetRepresentationTypeToWireframe () |
void | SetRepresentationTypeToSurface () |
const char * | GetRepresentationTypeAsString () const |
void | SetAmbient (float value) |
float | GetAmbient () const |
void | SetDiffuse (float value) |
float | GetDiffuse () const |
void | SetSpecular (float value) |
float | GetSpecular () const |
void | SetSpecularPower (float value) |
float | GetSpecularPower () const |
void | SetOpacity (float value) |
float | GetOpacity () const |
void | SetLineWidth (float value) |
float | GetLineWidth () const |
void | SetPointSize (float value) |
float | GetPointSize () const |
void | SetLineStipplePattern (unsigned short value) |
unsigned short | GetLineStipplePattern () const |
void | SetLineStippleRepeatFactor (int value) |
int | GetLineStippleRepeatFactor () const |
void | SetColor (float red, float green, float blue, float alpha=1.0f) |
void | SetColor (float color[4]) |
float * | GetColor () |
void | GetColor (float color[4]) |
mitkSetColorMacro (AmbientColor, float) | |
mitkGetColorMacro (AmbientColor, float) | |
mitkSetColorMacro (DiffuseColor, float) | |
mitkGetColorMacro (DiffuseColor, float) | |
mitkSetColorMacro (SpecularColor, float) | |
mitkGetColorMacro (SpecularColor, float) | |
mitkSetColorMacro (EmissionColor, float) | |
mitkGetColorMacro (EmissionColor, float) | |
mitkSetColorMacro (EdgeColor, float) | |
mitkGetColorMacro (EdgeColor, float) |
mitkSurfaceProperty is a class contains properties of an mitkSurfaceModel including geometry representation parameters and material parameters.
|
Default constructor. |
|
Get the ambient coefficient.
|
|
Get the color of the surface decided by the value and coefficient of ambient, diffuse, specular and emission color(material) of the surface.
|
|
Get the color of the surface decided by the value and coefficient of ambient, diffuse, specular and emission color(material) of the surface.
|
|
Get the diffuse coefficient.
|
|
Get the interpolation type for sampling a surface.
|
|
Get the interpolation type for sampling a surface as a string.
|
|
Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). This is only implemented for OpenGL. The default is 0xFFFF.
|
|
Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated.
|
|
Get the line width. The width is expressed in screen units.
|
|
Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
|
|
Get the point size. The size is expressed in screen units.
|
|
Get the geometry representation of the surface.
|
|
Get the geometry representation of the surface as a string.
|
|
Get the specular coefficient.
|
|
Get the specular power.
|
|
Test if some of the properties are modified.
|
|
A group of functions to get the color of edges. |
|
A group of functions to get the emission color of the surface. |
|
A group of functions to get the specular color of the surface. |
|
A group of functions to get the diffuse color of the surface. |
|
A group of functions to get the ambient color of the surface. |
|
A group of functions to set color of edges. |
|
A group of functions to set the emission color of the surface. |
|
A group of functions to set the specular color of the surface. |
|
A group of functions to set the diffuse color of the surface. |
|
A group of functions to set the ambient color of the surface. |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkObject. |
|
Set the ambient coefficient.
|
|
Set the color of the surface. Has the side effect of setting the ambient, diffuse and specular colors as well. This is basically a quick overall color setting method.
|
|
Set the color of the surface. Has the side effect of setting the ambient, diffuse and specular colors as well. This is basically a quick overall color setting method.
|
|
Set the diffuse coefficient.
|
|
Set the interpolation type for sampling a surface.
|
|
Set the interpolation type for sampling a surface to MITK_SURFACE_FLAT. |
|
Set the interpolation type for sampling a surface to MITK_SURFACE_GOURAUD. |
|
Set the interpolation type for sampling a surface to MITK_SURFACE_PHONG. |
|
Set the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). This is only implemented for OpenGL. The default is 0xFFFF.
|
|
Set the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. This is only implemented for OpenGL. The default is 1.
|
|
Set the line width. The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
|
|
Set the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
|
|
Set the point size. The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
|
|
Set the geometry representation of the surface.
|
|
Set the geometry representation of the surface to MITK_MESH_POINTS. |
|
Set the geometry representation of the surface to MITK_MESH_SURFACE. |
|
Set the geometry representation of the surface to MITK_MESH_WIREFRAME. |
|
Set the specular coefficient.
|
|
Set the specular power.
|
|
Reset to unmodified after changes have been done according to the new properties. |