Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ParametricCurveDrawer Class Reference

#include <parametricCurveDrawer.h>

Inheritance diagram for ParametricCurveDrawer:

TypedObject NurbsCurveDrawer List of all members.

Public Member Functions

INLINE float get_max_t () const
INLINE void redraw ()
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

 PT (GeomNode) _geom_node
 PT (ParametricCurveCollection) _curves

Protected Attributes

bool _frame_accurate

Private Member Functions

virtual ~ParametricCurveDrawer ()
void set_curve (ParametricCurve *curve)
void set_curves (ParametricCurveCollection *curves)
void clear_curves ()
ParametricCurveCollectionget_curves ()
GeomNodeget_geom_node ()
 PT (GeomNode) detach_geom_node()
void set_num_segs (float num_segs)
float get_num_segs () const
void set_num_ticks (float num_ticks)
float get_num_ticks () const
void set_color (float r, float g, float b)
void set_tick_color (float r, float g, float b)
void set_frame_accurate (bool frame_accurate)
bool get_frame_accurate () const
virtual bool draw ()
void hide ()
void set_tick_scale (float scale)
float get_tick_scale () const

Static Private Member Functions

void get_tick_marks (const LVecBase3f &tangent, LVecBase3f &t1, LVecBase3f &t2)

Private Attributes

PUBLISHED __pad0__: ParametricCurveDrawer()
float _num_segs
LineSegs _lines
LineSegs _ticks
bool _drawn
float _num_ticks
float _tick_scale

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

ParametricCurveDrawer::~ParametricCurveDrawer  )  [private, virtual]
 

Definition at line 49 of file parametricCurveDrawer.cxx.

References clear_curves(), and hide().


Member Function Documentation

void ParametricCurveDrawer::clear_curves  )  [private]
 

Definition at line 104 of file parametricCurveDrawer.cxx.

References NULL, and set_curves().

Referenced by ~ParametricCurveDrawer().

bool ParametricCurveDrawer::draw  )  [private, virtual]
 

Reimplemented in NurbsCurveDrawer.

Definition at line 279 of file parametricCurveDrawer.cxx.

References _drawn, _frame_accurate, _lines, _num_segs, _num_ticks, _tick_scale, _ticks, cfloor(), LineSegs::create(), LineSegs::draw_to(), get_max_t(), ParametricCurve::get_max_t(), ParametricCurve::get_point(), ParametricCurve::get_pt(), get_tick_marks(), hide(), LineSegs::move_to(), NULL, scale, and t.

Referenced by NurbsCurveDrawer::draw().

virtual TypeHandle ParametricCurveDrawer::force_init_type void   )  [inline, virtual]
 

Implements TypedObject.

Reimplemented in NurbsCurveDrawer.

Definition at line 95 of file parametricCurveDrawer.h.

References TypedObject::get_class_type(), and TypedObject::init_type().

TypeHandle ParametricCurveDrawer::get_class_type void   )  [inline, static]
 

Reimplemented from TypedObject.

Reimplemented in NurbsCurveDrawer.

Definition at line 85 of file parametricCurveDrawer.h.

Referenced by NurbsCurveDrawer::force_init_type(), NurbsCurveDrawer::get_type(), and NurbsCurveDrawer::init_type().

ParametricCurveCollection * ParametricCurveDrawer::get_curves  )  [private]
 

Definition at line 114 of file parametricCurveDrawer.cxx.

bool ParametricCurveDrawer::get_frame_accurate  )  const [private]
 

Definition at line 264 of file parametricCurveDrawer.cxx.

References _frame_accurate.

GeomNode * ParametricCurveDrawer::get_geom_node  )  [private]
 

Definition at line 132 of file parametricCurveDrawer.cxx.

INLINE float ParametricCurveDrawer::get_max_t  )  const
 

Referenced by draw().

float ParametricCurveDrawer::get_num_segs  )  const [private]
 

Definition at line 184 of file parametricCurveDrawer.cxx.

References _num_segs.

float ParametricCurveDrawer::get_num_ticks  )  const [private]
 

Definition at line 211 of file parametricCurveDrawer.cxx.

References _num_ticks.

void ParametricCurveDrawer::get_tick_marks const LVecBase3f &  tangent,
LVecBase3f &  t1,
LVecBase3f &  t2
[static, private]
 

Definition at line 406 of file parametricCurveDrawer.cxx.

Referenced by draw().

float ParametricCurveDrawer::get_tick_scale  )  const [private]
 

Definition at line 394 of file parametricCurveDrawer.cxx.

References _tick_scale.

virtual TypeHandle ParametricCurveDrawer::get_type void   )  const [inline, virtual]
 

Implements TypedObject.

Reimplemented in NurbsCurveDrawer.

Definition at line 92 of file parametricCurveDrawer.h.

References TypedObject::get_class_type().

void ParametricCurveDrawer::hide  )  [private]
 

Definition at line 369 of file parametricCurveDrawer.cxx.

References _drawn.

Referenced by draw(), and ~ParametricCurveDrawer().

void ParametricCurveDrawer::init_type void   )  [inline, static]
 

Reimplemented from TypedObject.

Reimplemented in NurbsCurveDrawer.

Definition at line 88 of file parametricCurveDrawer.h.

References TypedObject::get_class_type(), and register_type().

Referenced by ConfigureFn(), NurbsCurveDrawer::force_init_type(), and NurbsCurveDrawer::init_type().

ParametricCurveDrawer::PT ParametricCurveCollection   )  [protected]
 

ParametricCurveDrawer::PT GeomNode   )  [protected]
 

ParametricCurveDrawer::PT GeomNode   )  [private]
 

Referenced by set_curve().

INLINE void ParametricCurveDrawer::redraw  ) 
 

Referenced by ParametricCurveCollection::redraw(), set_curves(), NurbsCurveDrawer::set_cv_color(), set_frame_accurate(), NurbsCurveDrawer::set_hull_color(), NurbsCurveDrawer::set_knot_color(), set_num_segs(), set_num_ticks(), NurbsCurveDrawer::set_show_cvs(), NurbsCurveDrawer::set_show_hull(), NurbsCurveDrawer::set_show_knots(), and set_tick_scale().

void ParametricCurveDrawer::set_color float  r,
float  g,
float  b
[private]
 

Definition at line 224 of file parametricCurveDrawer.cxx.

References _lines, b, g, r, and LineSegs::set_color().

void ParametricCurveDrawer::set_curve ParametricCurve curve  )  [private]
 

Definition at line 63 of file parametricCurveDrawer.cxx.

References PT(), and set_curves().

void ParametricCurveDrawer::set_curves ParametricCurveCollection curves  )  [private]
 

Definition at line 79 of file parametricCurveDrawer.cxx.

References NULL, redraw(), and ParametricCurveCollection::register_drawer().

Referenced by clear_curves(), and set_curve().

void ParametricCurveDrawer::set_frame_accurate bool  frame_accurate  )  [private]
 

Definition at line 252 of file parametricCurveDrawer.cxx.

References _frame_accurate, and redraw().

void ParametricCurveDrawer::set_num_segs float  num_segs  )  [private]
 

Definition at line 169 of file parametricCurveDrawer.cxx.

References _num_segs, and redraw().

void ParametricCurveDrawer::set_num_ticks float  num_ticks  )  [private]
 

Definition at line 199 of file parametricCurveDrawer.cxx.

References _num_ticks, and redraw().

void ParametricCurveDrawer::set_tick_color float  r,
float  g,
float  b
[private]
 

Definition at line 236 of file parametricCurveDrawer.cxx.

References _ticks, b, g, r, and LineSegs::set_color().

void ParametricCurveDrawer::set_tick_scale float  scale  )  [private]
 

Definition at line 382 of file parametricCurveDrawer.cxx.

References _tick_scale, redraw(), and scale.


Member Data Documentation

PUBLISHED ParametricCurveDrawer::__pad0__ [private]
 

Reimplemented from TypedObject.

Reimplemented in NurbsCurveDrawer.

Definition at line 36 of file parametricCurveDrawer.h.

bool ParametricCurveDrawer::_drawn [private]
 

Definition at line 80 of file parametricCurveDrawer.h.

Referenced by draw(), and hide().

bool ParametricCurveDrawer::_frame_accurate [protected]
 

Definition at line 75 of file parametricCurveDrawer.h.

Referenced by draw(), NurbsCurveDrawer::draw(), get_frame_accurate(), and set_frame_accurate().

LineSegs ParametricCurveDrawer::_lines [private]
 

Definition at line 79 of file parametricCurveDrawer.h.

Referenced by draw(), and set_color().

float ParametricCurveDrawer::_num_segs [private]
 

Definition at line 78 of file parametricCurveDrawer.h.

Referenced by draw(), get_num_segs(), and set_num_segs().

float ParametricCurveDrawer::_num_ticks [private]
 

Definition at line 81 of file parametricCurveDrawer.h.

Referenced by draw(), get_num_ticks(), and set_num_ticks().

float ParametricCurveDrawer::_tick_scale [private]
 

Definition at line 82 of file parametricCurveDrawer.h.

Referenced by draw(), get_tick_scale(), and set_tick_scale().

LineSegs ParametricCurveDrawer::_ticks [private]
 

Definition at line 79 of file parametricCurveDrawer.h.

Referenced by draw(), and set_tick_color().

TypeHandle ParametricCurveDrawer::_type_handle [static, private]
 

Reimplemented from TypedObject.

Reimplemented in NurbsCurveDrawer.

Definition at line 24 of file parametricCurveDrawer.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:01 2003 for Panda by doxygen1.3