#include <gfx_object.hh>
Inherits GfxObjBase.
Inherited by Entity, GfxTestObj, MapIso, MapSlab, PrimList, PyGfxObj, and Surface.
Public Member Functions |
| GfxObj (const String &name) |
virtual GfxNodeP | Copy () const |
virtual void | DeepSwap (GfxObj &go) |
virtual void | RenderGL (RenderPass pass) |
virtual void | RenderPov (PovState &pov) |
virtual void | Export (Exporter *ex) |
virtual void | Apply (GfxNodeVisitor &v, GfxNodeVisitor::Stack st) |
virtual int | GetType () const |
virtual void | SetMatAmb (const Color &c) |
virtual void | SetMatDiff (const Color &c) |
virtual void | SetMatSpec (const Color &c) |
virtual void | SetMatShin (float s) |
virtual void | SetMatEmm (const Color &c) |
virtual void | ContextSwitch () |
virtual void | SetRenderMode (RenderMode::Type m) |
virtual RenderMode::Type | GetRenderMode () const |
virtual geom::Vec3 | GetCenter () const |
virtual void | SetLineWidth (float w) |
virtual void | SetPolyMode (unsigned int m) |
virtual void | SetAALines (bool f) |
virtual void | SetLineHalo (float f) |
virtual void | SetOutline (bool f) |
virtual bool | GetOutline () const |
virtual void | SetOutlineMode (int m) |
virtual int | GetOutlineMode () const |
virtual void | SetOutlineWidth (float f) |
virtual float | GetOutlineWidth () const |
virtual void | SetOutlineExpandFactor (float f) |
virtual float | GetOutlineExpandFactor () const |
virtual void | SetOutlineExpandColor (const Color &c) |
virtual Color | GetOutlineExpandColor () const |
virtual void | SetOpacity (float f) |
virtual float | GetOpacity () const |
virtual void | ColorBy (const mol::EntityView &ev, const String &prop, const Gradient &g, float minv, float maxv) |
virtual geom::AlignedCuboid | GetBoundingBox () const |
virtual void | ProcessLimits (geom::Vec3 &minc, geom::Vec3 &maxc, const mol::Transform &tf) const |
virtual void | CustomRenderGL (RenderPass pass) |
virtual void | CustomPreRenderGL (bool rebuild) |
virtual void | InitGL () |
virtual void | CustomRenderPov (PovState &pov) |
virtual bool | OnSelect (const geom::Line3 &l, geom::Vec3 &result, float zlim, bool pick_flag) |
virtual void | OnInput (const InputEvent &e) |
virtual void | OnRenderModeChange () |
virtual void | OnGLCleanup () |
void | Clear () |
const mol::Transform & | GetTF () const |
void | SetTF (const mol::Transform &tf) |
void | AddLabel (const String &s, const geom::Vec3 &pos, const Color &col, float psize) |
void | AddLabel (const String &s, const geom::Vec3 &pos, const Color &col) |
void | AddLabel (const String &s, const geom::Vec3 &pos, float psize) |
void | AddLabel (const String &s, const geom::Vec3 &pos) |
void | ClearLabels () |
void | FlagRebuild () |
void | FlagRefresh () |
bool | GetAALines () const |
float | GetLineWidth () const |
float | GetLineHalo () const |
void | SetNormalSmoothFactor (float smoothf) |
float | GetNormalSmoothFactor () const |
Material | GetMaterial () const |
void | SetMaterial (const Material &m) |
void | SmoothVertices (float smoothf) |
void | GLCleanup () |
void | Debug (unsigned int flags) |
| GfxObjBase (const String &name) |
| GfxNode (const String &name) |
virtual | ~GfxNode () |
virtual void | DeepSwap (GfxNode &n) |
String | GetName () const |
void | RemoveAll () |
void | Rename (const String &name) |
void | Add (GfxObjP obj) |
bool | IsNameAvailable (const String &name) const |
void | Remove (GfxObjP obj) |
void | Add (GfxNodeP node) |
void | Remove (GfxNodeP node) |
void | Remove (const String &name) |
size_t | GetChildCount () const |
void | Hide () |
void | Show () |
bool | IsVisible () const |
bool | IsAttachedToScene () const |
gfx::GfxNodeP | GetParent () const |
const GfxNodeVector & | GetChildren () const |
GfxNodeVector & | GetChildren () |
Detailed Description
main class for all graphic objects
Definition at line 50 of file gfx_object.hh.
Constructor & Destructor Documentation
Member Function Documentation
removes all graphical elements
Reimplemented in PrimList.
color each component based on the gradient-mapped property of the given entity
Implements GfxObjBase.
Reimplemented in Entity, and Surface.
virtual void ContextSwitch |
( |
| ) |
|
|
virtual |
rendering context switch, some things need to be regenerated
Implements GfxObjBase.
virtual void CustomPreRenderGL |
( |
bool |
rebuild | ) |
|
|
virtual |
virtual void CustomRenderPov |
( |
PovState & |
pov | ) |
|
|
virtual |
void Debug |
( |
unsigned int |
flags | ) |
|
virtual void DeepSwap |
( |
GfxObj & |
go | ) |
|
|
virtual |
bool GetAALines |
( |
| ) |
const |
|
inline |
returns the left-bottom-front and the right-top-back corner that encompasses all graphical elements in this object
the bounding box is in local coordinates. to obtain the coordinates in the scene, multiply the bounding box by the object's transformation matrix.
Reimplemented in Entity, MapSlab, PrimList, Surface, MapIso, and GfxTestObj.
float GetLineHalo |
( |
| ) |
const |
|
inline |
float GetLineWidth |
( |
| ) |
const |
|
inline |
float GetNormalSmoothFactor |
( |
| ) |
const |
virtual float GetOpacity |
( |
| ) |
const |
|
inlinevirtual |
returns a value smaller than 1.0 if transparency is used in this object
Implements GfxObjBase.
Reimplemented in Entity.
Definition at line 90 of file gfx_object.hh.
virtual bool GetOutline |
( |
| ) |
const |
|
inlinevirtual |
virtual Color GetOutlineExpandColor |
( |
| ) |
const |
|
virtual |
get current outline color (mode 3)
Implements GfxObjBase.
virtual float GetOutlineExpandFactor |
( |
| ) |
const |
|
virtual |
get current outline expand factor (mode 3)
Implements GfxObjBase.
virtual int GetOutlineMode |
( |
| ) |
const |
|
inlinevirtual |
virtual float GetOutlineWidth |
( |
| ) |
const |
|
virtual |
virtual int GetType |
( |
| ) |
const |
|
virtual |
virtual void OnGLCleanup |
( |
| ) |
|
|
virtual |
virtual void OnRenderModeChange |
( |
| ) |
|
|
virtual |
void PreRenderGL |
( |
bool |
flag | ) |
|
|
protected |
adjust the given limits according to the represented data
Reimplemented in Entity, and PrimList.
void render_depth_only |
( |
| ) |
|
|
protected |
void render_labels |
( |
| ) |
const |
|
protected |
virtual void RenderPov |
( |
PovState & |
pov | ) |
|
|
virtual |
virtual void SetAALines |
( |
bool |
f | ) |
|
|
virtual |
turn on sophisticated line anti-aliasing, requires shader
Implements GfxObjBase.
virtual void SetLineHalo |
( |
float |
f | ) |
|
|
virtual |
turn on line halo of given strength
Implements GfxObjBase.
virtual void SetLineWidth |
( |
float |
w | ) |
|
|
virtual |
virtual void SetMatAmb |
( |
const Color & |
c | ) |
|
|
virtual |
virtual void SetMatDiff |
( |
const Color & |
c | ) |
|
|
virtual |
virtual void SetMatEmm |
( |
const Color & |
c | ) |
|
|
virtual |
virtual void SetMatShin |
( |
float |
s | ) |
|
|
virtual |
virtual void SetMatSpec |
( |
const Color & |
c | ) |
|
|
virtual |
void SetNormalSmoothFactor |
( |
float |
smoothf | ) |
|
virtual void SetOpacity |
( |
float |
f | ) |
|
|
virtual |
set opacity (1 = no transparency)
Implements GfxObjBase.
Reimplemented in Entity.
virtual void SetOutline |
( |
bool |
f | ) |
|
|
virtual |
turn outline rendering on or off
Implements GfxObjBase.
virtual void SetOutlineExpandColor |
( |
const Color & |
c | ) |
|
|
virtual |
virtual void SetOutlineExpandFactor |
( |
float |
f | ) |
|
|
virtual |
set outline expansion factor (mode 3) this scales with resolution
Implements GfxObjBase.
Reimplemented in Entity.
virtual void SetOutlineMode |
( |
int |
m | ) |
|
|
virtual |
set outline mode, 1, 2 or 3
Implements GfxObjBase.
virtual void SetOutlineWidth |
( |
float |
f | ) |
|
|
virtual |
set outline width in pixels (modes 1 + 2) this does not scale with resolution
Implements GfxObjBase.
Reimplemented in Entity.
virtual void SetPolyMode |
( |
unsigned int |
m | ) |
|
|
virtual |
void SmoothVertices |
( |
float |
smoothf | ) |
|
Field Documentation
unsigned int debug_flags_ |
|
protected |
The documentation for this class was generated from the following file: