any surface object
![]() | Rendering a data structure describing a given rendering mode
| ||||||||
![]() | SecondaryRenderingList a data structure describing a list of possible rendering modes, used for secondary rendering lists
|
![]() | (Surface::*RedrawRenderingMode) (Camera3D *c) defines the type of member function that can be called when drawing a rendering mode |
![]() | getRenderingFromOptionName (TclString n) returns a pointer to the rendering structure having Tcl option name n if no rendering has name n then returns 0 |
![]() | getRenderingFromName (TclString n) returns a pointer to the rendering structure having name n if no rendering has name n then returns 0 |
![]() | getRenderMode (void) const returns current render mode |
![]() | setRendering (const TclString& name) set a rendering mode gven its name |
![]() | setRendering (Rendering *r) set a rendering mode |
![]() | getSecondaryRenderingListFromOptionName (const TclString& t) returns a pointer to the secondary rendering list having Tcl option name t if no secondary rendering list has name n then returns 0 |
![]() | getSecondaryRenderingListFromName (const TclString& t) returns a pointer to the secondary rendering list having name t if no secondary rendering list has name n then returns 0 |
![]() | getSecondaryRenderingFromOptionName (SecondaryRenderingList* srl, const TclString& n) returns a pointer to the rendering mode having Tcl option name n, defined in the secondary rendering list srl if no rendering mode has name n then returns 0 |
![]() | getSecondaryRenderingFromOptionName (const TclString& l, const TclString& n) returns a pointer to the rendering mode having Tcl option name n, defined in the secondary rendering list having Tcl option name l if no rendering mode has name n then returns 0 |
![]() | getSecondaryRenderingFromName (SecondaryRenderingList* srl, const TclString& n) returns a pointer to the rendering mode having name n, defined in the secondary rendering list srl if no rendering mode has name n then returns 0 |
![]() | getSecondaryRenderingFromName (const TclString& l, const TclString& n) returns a pointer to the rendering mode having name n, defined in the secondary rendering list having name l if no rendering mode has name n then returns 0 |
![]() | getSecondaryRenderMode (const SecondaryRenderingList* t) const returns current render mode in secondary rendering list t |
![]() | setSecondaryRendering (const TclString& t, const TclString& n) set a rendering mode given its name in secondary rendering list t |
![]() | setSecondaryRendering (SecondaryRenderingList* rt, Rendering *rm) set a rendering mode in secondary rendering list t |
![]() | getColor (void) returns wireframe color |
![]() | getMaterial (void) returns surface material |
![]() | getLineWidth (void) const returns wireframe line width |
![]() | setLineWidth (GLfloat width) set wireframe line width |
![]() | getTexture2DMode () get textureMode of the 2D texture |
![]() | getTexture1DMode () get textureMode of the 1D texture |
![]() | setTexture2DMode (Texture2D::TextureMode tm) set textureMode of the 2D texture |
![]() | setTexture1DMode (Texture1D::TextureMode tm) set textureMode of the 1D texture |
![]() | setTexture2D (Texture2D *t) set 2D texture |
![]() | setTexture1D (Texture1D *t) set 1D texture |
![]() | setHighlightTexture (Texture2D *t) set highlight texture |
![]() | getTexture2D () const get 2D texture |
![]() | getTexture1D () const get 2D texture |
![]() | getHighlightTexture () const get highlight texture |
![]() | usingTexture2D () const if 2D texture should be used |
![]() | usingTexture1D () const if 2D texture should be used |
![]() | usingTextureHighlight () const if texture highlight should be used |
![]() | setTexture2DUsage (const bool b) set the use of 2D texture mapping |
![]() | setTexture1DUsage (const bool b) set the use of 2D texture mapping |
![]() | setTextureHighlightUsage (const bool b) set the use of texture highlight |
![]() | replaceLighting () const if lighting should replace lighting or should be modulated with lighting |
![]() | setLightingTextureUsage (const bool b) set the use of lighting vs texture mapping |
![]() | dying (const ObjectPointer<Texture2D>& obj) an 2D Texture is being destroyed |
![]() | dying (const ObjectPointer<Texture1D>& obj) a 1D Texture is being destroyed |
![]() | surfaceChanged (void) delete display lists when surface changes |
![]() | redraw (Camera3D *cam) redraw the surface |
![]() | buildWireframe (void) wireframe display list creation callback |
![]() | buildSolid (void) solid display list creation callback |
![]() | buildFlat (void) flat display list creation callback |
![]() | setRedrawOrder (unsigned int order) set object redraw order for transparency sorting |
![]() | renderCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -render TCL command |
![]() | renderOptionCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -renderOption TCL command |
![]() | secondaryRenderCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -secondaryRender TCL command |
![]() | secondaryRenderOptionCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -secondaryRenderOption TCL command |
![]() | texture2DCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -texture2D TCL command |
![]() | texture1DCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -texture1D TCL command |
![]() | highlightTextureCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -texture TCL command |
![]() | useDisplayListsCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -useDisplayList TCL command |
![]() | texture2DOptionCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -texture2DOption TCL command |
![]() | texture1DOptionCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -texture1DOption TCL command |
![]() | colorCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -color TCL command |
![]() | materialCmd (TclModule *m, Data3D *data, int argc, char **argv, int i = 0) -material TCL command |
![]() | constructors
| ||||||
![]() | destructor |
![]() | useFlat wether we really need a specific flat display List |
![]() | mat surface material |
![]() | color wireframe color |
![]() | width wireframe line width |
![]() | wireframeList wireframe display list |
![]() | solidList solid display list |
![]() | flatList flat display list |
![]() | texture1D a texture applied on the surface |
![]() | texture2D a texture applied on the surface |
![]() | highlightTexture a texture applied on the surface corresponding to the specular component |
![]() | useTexture1D if we should use texture mapping |
![]() | useTexture2D if we should use texture mapping |
![]() | useTextureHighlight if we should use texture highlighting instead of Gouraud specularity |
![]() | textureReplaceLighting if the texture map should replace lighting or being modulated with it |
![]() | texture2DInterpolation describe how to interpolate texture |
![]() | texture2DExtrapolation describe how to extrapolate texture |
![]() | texture2DMode describe how to apply the texture |
![]() | texture1DInterpolation describe how to interpolate texture |
![]() | texture1DExtrapolation describe how to extrapolate texture |
![]() | texture1DMode describe how to apply the texture |
![]() | sTextureParameters [4] s texture parameter vector when using automatic texture coordinate generate with a plane |
![]() | tTextureParameters [4] t texture parameter vector when using automatic texture coordinate generate with a plane |
![]() | renderingList the list of possible rendering for that surface */ |
![]() | selectedRendering the rendering mode that is currently used |
![]() | secondaryRenderingLists the list of secondary rendering lists for that surface */ |
![]() | buildWireframeDisplayList (void) builds object's wireframe display list |
![]() | buildFlatDisplayList (void) builds object's flat display list |
![]() | buildSolidDisplayList (void) builds object's solid list |
![]() | callWireframeDisplayList (void) call (and build if needed) object's wireframe display list |
![]() | callFlatDisplayList (void) call (and build if needed) object's flat display list |
![]() | callSolidDisplayList (void) call (and build if needed) object's solid display list |
![]() | destroyWireframeDisplayList (void) destroy if needed object's wireframe display list |
![]() | destroyFlatDisplayList (void) destroy if needed object's flat display list |
![]() | destroySolidDisplayList (void) destroy if needed object's solid list |
![]() | initRenderingList (void) initialize the list of rendering and select one rendering |
![]() | destroyRenderingList (void) destroy the list of rendering |
![]() | redrawBasic (Camera3D *cam, RenderMode rm) call surface display list for all pre-defined rendering modes |
![]() | dummyRedraw (Camera3D *cam) redraw function for the "hide" rendering |
![]() | wireframeRedraw (Camera3D *cam) redraw function for the "wireframe" rendering |
![]() | flatRedraw (Camera3D *cam) redraw function for the "flat" rendering |
![]() | gouraudRedraw (Camera3D *cam) redraw function for the "solid" rendering |
![]() | wireGouraudRedraw (Camera3D *cam) redraw function for the "wireframesolid" rendering |
![]() | hiddenRedraw (Camera3D *cam) redraw function for the "hidden" rendering |
![]() | transparentRedraw (Camera3D *cam) redraw function for the "transparency" rendering |
![]() | wireTransparentRedraw (Camera3D *cam) redraw function for the "wireframetransparency" rendering |
![]() | wireframeLinesRedraw (Camera3D *cam) redraw function for the "wireframe" rendering |
![]() | wireframeHiddenRedraw (Camera3D *cam) redraw function for the "hidden lines" rendering |
![]() | solidFlatRedraw (Camera3D *cam) redraw function for the "flat" rendering |
![]() | solidGouraudRedraw (Camera3D *cam) redraw function for the "solid" rendering |
![]() | solidTransparentRedraw (Camera3D *cam) redraw function for the "transparency" rendering |
any surface object
struct Rendering
TclString renderingName
TclString optionName
RedrawRenderingMode redraw
struct SecondaryRenderingList
TclString renderingListName
TclString optionName
std::list <Rendering *> renderingList
enum RenderMode
RM_NONE
RM_WIREFRAME
RM_FLAT
RM_SOLID
RM_WIREFRAME_SOLID
RM_HIDDEN_LINES
RM_TRANSPARENCY
RM_WIREFRAME_TRANSPARENCY
bool useFlat
Material mat
Color color
GLfloat width
GLuint wireframeList
GLuint solidList
GLuint flatList
ObjectPointer <Texture1D> texture1D
ObjectPointer <Texture2D> texture2D
ObjectPointer <Texture2D> highlightTexture
bool useTexture1D
bool useTexture2D
bool useTextureHighlight
bool textureReplaceLighting
Texture2D::TextureInterpolation texture2DInterpolation
Texture2D::TextureExtrapolation texture2DExtrapolation
Texture2D::TextureMode texture2DMode
Texture1D::TextureInterpolation texture1DInterpolation
Texture1D::TextureExtrapolation texture1DExtrapolation
Texture1D::TextureMode texture1DMode
double sTextureParameters[4]
double tTextureParameters[4]
void buildWireframeDisplayList(void)
void buildFlatDisplayList(void)
void buildSolidDisplayList(void)
void callWireframeDisplayList(void)
void callFlatDisplayList(void)
void callSolidDisplayList(void)
void destroyWireframeDisplayList(void)
void destroyFlatDisplayList(void)
void destroySolidDisplayList(void)
std::list <Rendering *> renderingList
Rendering* selectedRendering
std::list <SecondaryRenderingList *> secondaryRenderingLists
void initRenderingList(void)
void destroyRenderingList(void)
void redrawBasic(Camera3D *cam, RenderMode rm)
void dummyRedraw(Camera3D *cam)
void wireframeRedraw(Camera3D *cam)
void flatRedraw(Camera3D *cam)
void gouraudRedraw(Camera3D *cam)
void wireGouraudRedraw(Camera3D *cam)
void hiddenRedraw(Camera3D *cam)
void transparentRedraw(Camera3D *cam)
void wireTransparentRedraw(Camera3D *cam)
void wireframeLinesRedraw(Camera3D *cam)
void wireframeHiddenRedraw(Camera3D *cam)
void solidFlatRedraw(Camera3D *cam)
void solidGouraudRedraw(Camera3D *cam)
void solidTransparentRedraw(Camera3D *cam)
constructors
Surface()
Surface(const GLfloat *ambient, const GLfloat *diffuse, const GLfloat *specular, GLfloat shininess)
diffuse - surface diffuse light reflexion 4 coefficients
specular - surface specular light reflexion 4 coefficients
shininess - surface shininess destructor
Rendering* getRenderingFromOptionName(TclString n)
Rendering* getRenderingFromName(TclString n)
const Rendering* getRenderMode(void) const
virtual void setRendering(const TclString& name)
virtual void setRendering(Rendering *r)
SecondaryRenderingList* getSecondaryRenderingListFromOptionName(const TclString& t)
SecondaryRenderingList* getSecondaryRenderingListFromName(const TclString& t)
Rendering* getSecondaryRenderingFromOptionName(SecondaryRenderingList* srl, const TclString& n)
Rendering* getSecondaryRenderingFromOptionName(const TclString& l, const TclString& n)
Rendering* getSecondaryRenderingFromName(SecondaryRenderingList* srl, const TclString& n)
Rendering* getSecondaryRenderingFromName(const TclString& l, const TclString& n)
const Rendering* getSecondaryRenderMode(const SecondaryRenderingList* t) const
void setSecondaryRendering(const TclString& t, const TclString& n)
void setSecondaryRendering(SecondaryRenderingList* rt, Rendering *rm)
Color& getColor(void)
Material& getMaterial(void)
GLfloat getLineWidth(void) const
void setLineWidth(GLfloat width)
Texture2D::TextureMode getTexture2DMode()
Texture1D::TextureMode getTexture1DMode()
void setTexture2DMode(Texture2D::TextureMode tm)
void setTexture1DMode(Texture1D::TextureMode tm)
void setTexture2D(Texture2D *t)
void setTexture1D(Texture1D *t)
void setHighlightTexture(Texture2D *t)
Texture2D* getTexture2D() const
Texture1D* getTexture1D() const
Texture2D* getHighlightTexture() const