VTK
|
OpenGL property. More...
#include <vtkOpenGLProperty.h>
Public Types | |
typedef vtkProperty | Superclass |
typedef vtkProperty | Superclass |
![]() | |
typedef vtkObject | Superclass |
enum | VTKTextureUnit { VTK_TEXTURE_UNIT_0 = 0, VTK_TEXTURE_UNIT_1, VTK_TEXTURE_UNIT_2, VTK_TEXTURE_UNIT_3, VTK_TEXTURE_UNIT_4, VTK_TEXTURE_UNIT_5, VTK_TEXTURE_UNIT_6, VTK_TEXTURE_UNIT_7 } |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLProperty * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
void | Render (vtkActor *a, vtkRenderer *ren) |
void | BackfaceRender (vtkActor *a, vtkRenderer *ren) |
virtual void | ReleaseGraphicsResources (vtkWindow *win) |
virtual vtkShaderDeviceAdapter2 * | GetShaderDeviceAdapter2 () |
virtual int | IsA (const char *type) |
vtkOpenGLProperty * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
void | Render (vtkActor *a, vtkRenderer *ren) |
void | BackfaceRender (vtkActor *a, vtkRenderer *ren) |
virtual void | ReleaseGraphicsResources (vtkWindow *win) |
virtual void | PostRender (vtkActor *a, vtkRenderer *r) |
virtual vtkShaderProgram2 * | GetPropProgram () |
void | SetPropProgram (vtkShaderProgram2 *) |
virtual vtkShaderProgram2 * | GetCurrentShaderProgram2 () |
virtual void | AddShaderVariable (const char *name, int numVars, int *x) |
virtual void | AddShaderVariable (const char *name, int numVars, float *x) |
virtual void | AddShaderVariable (const char *name, int numVars, double *x) |
virtual void | PostRender (vtkActor *a, vtkRenderer *r) |
![]() | |
vtkProperty * | NewInstance () const |
void | DeepCopy (vtkProperty *p) |
void | RemoveTexture (const char *name) |
void | RemoveAllTextures () |
int | GetNumberOfTextures () |
virtual bool | GetLighting () |
virtual void | SetLighting (bool) |
virtual void | LightingOn () |
virtual void | LightingOff () |
virtual void | SetInterpolation (int) |
virtual int | GetInterpolation () |
void | SetInterpolationToFlat () |
void | SetInterpolationToGouraud () |
void | SetInterpolationToPhong () |
const char * | GetInterpolationAsString () |
virtual void | SetRepresentation (int) |
virtual int | GetRepresentation () |
void | SetRepresentationToPoints () |
void | SetRepresentationToWireframe () |
void | SetRepresentationToSurface () |
const char * | GetRepresentationAsString () |
virtual void | SetColor (double r, double g, double b) |
virtual void | SetColor (double a[3]) |
double * | GetColor () |
void | GetColor (double rgb[3]) |
void | GetColor (double &r, double &g, double &b) |
virtual void | SetAmbient (double) |
virtual double | GetAmbient () |
virtual void | SetDiffuse (double) |
virtual double | GetDiffuse () |
virtual void | SetSpecular (double) |
virtual double | GetSpecular () |
virtual void | SetSpecularPower (double) |
virtual double | GetSpecularPower () |
virtual void | SetOpacity (double) |
virtual double | GetOpacity () |
virtual void | SetAmbientColor (double, double, double) |
virtual void | SetAmbientColor (double[3]) |
virtual double * | GetAmbientColor () |
virtual void | GetAmbientColor (double &, double &, double &) |
virtual void | GetAmbientColor (double[3]) |
virtual void | SetDiffuseColor (double, double, double) |
virtual void | SetDiffuseColor (double[3]) |
virtual double * | GetDiffuseColor () |
virtual void | GetDiffuseColor (double &, double &, double &) |
virtual void | GetDiffuseColor (double[3]) |
virtual void | SetSpecularColor (double, double, double) |
virtual void | SetSpecularColor (double[3]) |
virtual double * | GetSpecularColor () |
virtual void | GetSpecularColor (double &, double &, double &) |
virtual void | GetSpecularColor (double[3]) |
virtual int | GetEdgeVisibility () |
virtual void | SetEdgeVisibility (int) |
virtual void | EdgeVisibilityOn () |
virtual void | EdgeVisibilityOff () |
virtual void | SetEdgeColor (double, double, double) |
virtual void | SetEdgeColor (double[3]) |
virtual double * | GetEdgeColor () |
virtual void | GetEdgeColor (double &, double &, double &) |
virtual void | GetEdgeColor (double[3]) |
virtual void | SetLineWidth (float) |
virtual float | GetLineWidth () |
virtual void | SetLineStipplePattern (int) |
virtual int | GetLineStipplePattern () |
virtual void | SetLineStippleRepeatFactor (int) |
virtual int | GetLineStippleRepeatFactor () |
virtual void | SetPointSize (float) |
virtual float | GetPointSize () |
virtual int | GetBackfaceCulling () |
virtual void | SetBackfaceCulling (int) |
virtual void | BackfaceCullingOn () |
virtual void | BackfaceCullingOff () |
virtual int | GetFrontfaceCulling () |
virtual void | SetFrontfaceCulling (int) |
virtual void | FrontfaceCullingOn () |
virtual void | FrontfaceCullingOff () |
virtual char * | GetMaterialName () |
virtual void | SetShading (int) |
virtual int | GetShading () |
virtual void | ShadingOn () |
virtual void | ShadingOff () |
void | AddShaderVariable (const char *name, int v) |
void | AddShaderVariable (const char *name, float v) |
void | AddShaderVariable (const char *name, double v) |
void | AddShaderVariable (const char *name, int v1, int v2) |
void | AddShaderVariable (const char *name, float v1, float v2) |
void | AddShaderVariable (const char *name, double v1, double v2) |
void | AddShaderVariable (const char *name, int v1, int v2, int v3) |
void | AddShaderVariable (const char *name, float v1, float v2, float v3) |
void | AddShaderVariable (const char *name, double v1, double v2, double v3) |
void | SetTexture (const char *name, vtkTexture *texture) |
vtkTexture * | GetTexture (const char *name) |
void | SetTexture (int unit, vtkTexture *texture) |
vtkTexture * | GetTexture (int unit) |
void | RemoveTexture (int unit) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkOpenGLProperty * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLProperty * | SafeDownCast (vtkObjectBase *o) |
static vtkOpenGLProperty * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLProperty * | SafeDownCast (vtkObjectBase *o) |
static void | SetMaterialProperties (unsigned int face, double ambient, const double ambient_color[3], double diffuse, const double diffuse_color[3], double specular, const double specular_color[3], double specular_power, double opacity, vtkOpenGLRenderWindow *context) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkProperty * | SafeDownCast (vtkObjectBase *o) |
static vtkProperty * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Additional Inherited Members | |
![]() | |
static void | ComputeCompositeColor (double result[3], double ambient, const double ambient_color[3], double diffuse, const double diffuse_color[3], double specular, const double specular_color[3]) |
OpenGL property.
vtkOpenGLProperty is a concrete implementation of the abstract class vtkProperty. vtkOpenGLProperty interfaces to the OpenGL rendering library.
Definition at line 36 of file vtkOpenGLProperty.h.
Definition at line 40 of file vtkOpenGLProperty.h.
Definition at line 32 of file vtkOpenGLProperty.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkProperty.
|
static |
|
protectedvirtual |
Reimplemented from vtkProperty.
vtkOpenGLProperty* vtkOpenGLProperty::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkProperty.
|
virtual |
Implement base class method.
Reimplemented from vtkProperty.
|
virtual |
Implement base class method.
Reimplemented from vtkProperty.
|
virtual |
This method is called after the actor has been rendered. Don't call this directly. This method cleans up any shaders allocated.
Reimplemented from vtkProperty.
|
virtual |
Release any graphics resources that are being consumed by this property. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkProperty.
|
virtual |
Set/Get the shader program of the vtkProp. It can be set directly or by defining a Material.
void vtkOpenGLProperty::SetPropProgram | ( | vtkShaderProgram2 * | ) |
Set/Get the shader program of the vtkProp. It can be set directly or by defining a Material.
|
virtual |
Get the object that can pass vertex attribute to a vtkShaderProgram2.
Reimplemented from vtkProperty.
|
virtual |
Get the vtkShaderProgram2 object in use.
|
virtual |
Provide values to initialize shader variables. Useful to initialize shader variables that change over time (animation, GUI widgets inputs, etc. ) - name
- hardware name of the uniform variable - numVars
- number of variables being set - x
- values
Reimplemented from vtkProperty.
|
virtual |
Provide values to initialize shader variables. Useful to initialize shader variables that change over time (animation, GUI widgets inputs, etc. ) - name
- hardware name of the uniform variable - numVars
- number of variables being set - x
- values
Reimplemented from vtkProperty.
|
virtual |
Provide values to initialize shader variables. Useful to initialize shader variables that change over time (animation, GUI widgets inputs, etc. ) - name
- hardware name of the uniform variable - numVars
- number of variables being set - x
- values
Reimplemented from vtkProperty.
|
static |
Helper method to set OpenGL material properties.
|
protected |
Method called in vtkOpenGLProperty::Render() to render shaders and/or related entities like shader variables. Returns true if any shaders were rendered.
|
protected |
Method called in vtkOpenGLProperty::Render() to render textures. Last argument is the value returned from RenderShaders() call.
|
protected |
Load OpenGL extensions for multi texturing.
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkProperty.
|
static |
|
protectedvirtual |
Reimplemented from vtkProperty.
vtkOpenGLProperty* vtkOpenGLProperty::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkProperty.
|
virtual |
Implement base class method.
Reimplemented from vtkProperty.
|
virtual |
Implement base class method.
Reimplemented from vtkProperty.
|
virtual |
This method is called after the actor has been rendered. Don't call this directly. This method cleans up any shaders allocated.
Reimplemented from vtkProperty.
|
virtual |
Release any graphics resources that are being consumed by this property. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkProperty.
|
protected |
Method called in vtkOpenGLProperty::Render() to render textures. Last argument is the value returned from RenderShaders() call.
|
protected |
Definition at line 118 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 120 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 121 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 122 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 126 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 128 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 129 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 130 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 131 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 132 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 133 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 134 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 135 of file vtkOpenGLProperty.h.
|
protected |
Definition at line 136 of file vtkOpenGLProperty.h.