Surface Class Reference

#include <surface.hh>

Inherits ost::gfx::GfxObj.

Public Member Functions

 Surface (const String &name, const mol::SurfaceHandle &sh)
virtual void OnRenderModeChange ()
virtual void CustomRenderGL (RenderPass pass)
virtual void CustomRenderPov (PovState &pov)
virtual geom::AlignedCuboid GetBoundingBox (bool use_global=false) const
mol::SurfaceHandle GetHandle () const
void Rebuild ()
void Replace (const mol::SurfaceHandle &sh)
void SetColor (const Color &col, const String &selection=String(""))
virtual void ColorBy (const mol::EntityView &ev, const String &prop, const Gradient &g, float minv, float maxv)
virtual void ColorBy (const img::MapHandle &mh, const String &prop, const Gradient &g, float minv, float maxv)
void ColorBy (const String &prop, const Gradient &gradient, float minv, float maxv, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
void ColorBy (const String &prop, const Gradient &gradient, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
void ColorBy (const String &prop, const Color &c1, const Color &c2, float min, float max, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
void ColorBy (const String &prop, const Color &c1, const Color &c2, mol::Prop::Level hint=mol::Prop::UNSPECIFIED)
void Apply (const gfx::UniformColorOp &op, bool store=true)
void Apply (const gfx::BasicGradientColorOp &op, bool store=true)
void Apply (const gfx::GradientLevelColorOp &op, bool store=true)
void Apply (const gfx::EntityViewColorOp &op, bool store=true)
void Apply (const gfx::MapHandleColorOp &op, bool store=true)
void CleanColorOps ()
void ReapplyColorOps ()

Protected Member Functions

virtual void CustomPreRenderGL (bool flag)

Detailed Description

Definition at line 49 of file surface.hh.


Constructor & Destructor Documentation

Surface ( const String name,
const mol::SurfaceHandle sh 
)

Member Function Documentation

void Apply ( const gfx::MapHandleColorOp op,
bool  store = true 
)
void Apply ( const gfx::EntityViewColorOp op,
bool  store = true 
)
void Apply ( const gfx::GradientLevelColorOp op,
bool  store = true 
)
void Apply ( const gfx::BasicGradientColorOp op,
bool  store = true 
)
void Apply ( const gfx::UniformColorOp op,
bool  store = true 
)
void CleanColorOps (  ) 

Reimplemented from GfxObj.

void ColorBy ( const String prop,
const Color c1,
const Color c2,
mol::Prop::Level  hint = mol::Prop::UNSPECIFIED 
)
void ColorBy ( const String prop,
const Color c1,
const Color c2,
float  min,
float  max,
mol::Prop::Level  hint = mol::Prop::UNSPECIFIED 
)
void ColorBy ( const String prop,
const Gradient gradient,
mol::Prop::Level  hint = mol::Prop::UNSPECIFIED 
)
void ColorBy ( const String prop,
const Gradient gradient,
float  minv,
float  maxv,
mol::Prop::Level  hint = mol::Prop::UNSPECIFIED 
)
virtual void ColorBy ( const img::MapHandle mh,
const String prop,
const Gradient g,
float  minv,
float  maxv 
) [virtual]

color based on image

Reimplemented from GfxObj.

virtual void ColorBy ( const mol::EntityView ev,
const String prop,
const Gradient g,
float  minv,
float  maxv 
) [virtual]

color each component based on the gradient-mapped property of the given entity

Reimplemented from GfxObj.

virtual void CustomPreRenderGL ( bool  flag  )  [protected, virtual]

Reimplemented from GfxObj.

virtual void CustomRenderGL ( RenderPass  pass  )  [virtual]

Reimplemented from GfxObj.

virtual void CustomRenderPov ( PovState pov  )  [virtual]

Reimplemented from GfxObj.

virtual geom::AlignedCuboid GetBoundingBox ( bool  use_tf = false  )  const [virtual]

returns the bounding box of this object

The bounding box, i.e. the left-bottom-front and the right-top-back corner of the object, is obtained with this method. The single boolean parameter denotes whether to return local coordinates or global scene coordinates; global scene coordinates are local coordinates with the object's transformation (if present) applied. The default is false, i.e. return local coordinates.

Reimplemented from GfxObj.

mol::SurfaceHandle GetHandle (  )  const
virtual void OnRenderModeChange (  )  [virtual]

Reimplemented from GfxObj.

void ReapplyColorOps (  ) 

Reimplemented from GfxObj.

void Rebuild (  ) 
void Replace ( const mol::SurfaceHandle sh  ) 
void SetColor ( const Color col,
const String selection = String("") 
)

set color for selection


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 1 Mar 2018 for OpenStructure by  doxygen 1.6.1