OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions
CartoonRenderOptions Class Reference

#include <cartoon_render_options.hh>

Inherits RenderOptions.

Public Member Functions

 CartoonRenderOptions (bool force_tube=false)
 
virtual RenderMode::Type GetRenderMode ()
 
virtual bool CanApplyRenderOptions (RenderOptionsPtr render_options)
 
virtual void ApplyRenderOptions (RenderOptionsPtr render_options)
 
void SetPolyMode (uint poly_mode)
 
uint GetPolyMode () const
 
void SetSplineDetail (uint spline_detail)
 
uint GetSplineDetail () const
 
void SetArcDetail (uint arc_detail)
 
uint GetArcDetail () const
 
void SetNormalSmoothFactor (float smooth_factor)
 
float GetNormalSmoothFactor () const
 
void SetTubeRadius (float tube_radius)
 
float GetTubeRadius () const
 
void SetTubeRatio (float tube_ratio)
 
float GetTubeRatio () const
 
unsigned int GetTubeProfileType () const
 
void SetTubeProfileType (unsigned int)
 
void SetHelixWidth (float helix_width)
 
float GetHelixWidth () const
 
void SetHelixThickness (float helix_thickness)
 
float GetHelixThickness () const
 
void SetHelixEcc (float helix_ecc)
 
float GetHelixEcc () const
 
void SetHelixProfileType (unsigned int)
 
unsigned int GetHelixProfileType () const
 
unsigned int GetHelixMode () const
 
void SetHelixMode (unsigned int)
 
void SetStrandWidth (float strand_width)
 
float GetStrandWidth () const
 
void SetStrandThickness (float strand_thickness)
 
float GetStrandThickness () const
 
void SetStrandEcc (float strand_ecc)
 
float GetStrandEcc () const
 
void SetStrandProfileType (unsigned int)
 
unsigned int GetStrandProfileType () const
 
void SetStrandMode (unsigned int)
 
unsigned int GetStrandMode () const
 
void SetColorBlendMode (unsigned int)
 
unsigned int GetColorBlendMode () const
 
void SetTwistHack (bool)
 
bool GetTwistHack () const
 
float GetMaxRad () const
 
- Public Member Functions inherited from RenderOptions
 RenderOptions ()
 
virtual ~RenderOptions ()
 
bool AddObserver (EntityP entity)
 
bool RemoveObserver (EntityP entity)
 
void NotifyStateChange ()
 

Detailed Description

Definition at line 34 of file cartoon_render_options.hh.

Constructor & Destructor Documentation

CartoonRenderOptions ( bool  force_tube = false)

Member Function Documentation

virtual void ApplyRenderOptions ( RenderOptionsPtr  render_options)
virtual

Implements RenderOptions.

virtual bool CanApplyRenderOptions ( RenderOptionsPtr  render_options)
virtual

Implements RenderOptions.

uint GetArcDetail ( ) const
unsigned int GetColorBlendMode ( ) const
float GetHelixEcc ( ) const
unsigned int GetHelixMode ( ) const

0=normal 1=straight cylinders

unsigned int GetHelixProfileType ( ) const
float GetHelixThickness ( ) const
float GetHelixWidth ( ) const
float GetMaxRad ( ) const
float GetNormalSmoothFactor ( ) const
uint GetPolyMode ( ) const
virtual RenderMode::Type GetRenderMode ( )
virtual

Implements RenderOptions.

uint GetSplineDetail ( ) const
float GetStrandEcc ( ) const
unsigned int GetStrandMode ( ) const
unsigned int GetStrandProfileType ( ) const
float GetStrandThickness ( ) const
float GetStrandWidth ( ) const
unsigned int GetTubeProfileType ( ) const
float GetTubeRadius ( ) const
float GetTubeRatio ( ) const
bool GetTwistHack ( ) const
inline

Definition at line 105 of file cartoon_render_options.hh.

void SetArcDetail ( uint  arc_detail)

number of circular profile subdivisions per 90deg

void SetColorBlendMode ( unsigned  int)

0=smooth transition, 1=sharp transition

void SetHelixEcc ( float  helix_ecc)

see helix profile

void SetHelixMode ( unsigned  int)
void SetHelixProfileType ( unsigned  int)

various ways to calculate circular profile with ecc

void SetHelixThickness ( float  helix_thickness)
void SetHelixWidth ( float  helix_width)
void SetNormalSmoothFactor ( float  smooth_factor)

experimental

void SetPolyMode ( uint  poly_mode)

sets vertex array poly mode

void SetSplineDetail ( uint  spline_detail)

number of smooth points between spline control points

void SetStrandEcc ( float  strand_ecc)

see strand profile

void SetStrandMode ( unsigned  int)

0=normal, 1=straightened

void SetStrandProfileType ( unsigned  int)

various ways to calculate circular profile with ecc

void SetStrandThickness ( float  strand_thickness)
void SetStrandWidth ( float  strand_width)
void SetTubeProfileType ( unsigned  int)
void SetTubeRadius ( float  tube_radius)
void SetTubeRatio ( float  tube_ratio)
void SetTwistHack ( bool  )

experimental


The documentation for this class was generated from the following file: