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

EggNurbsSurface Class Reference

#include <eggNurbsSurface.h>

Inheritance diagram for EggNurbsSurface:

EggSurface EggPrimitive EggNode EggAttributes EggRenderMode EggNamedObject EggObject Namable TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Types

typedef plist< PT(EggNurbsCurveCurves )
typedef Curves Loop
typedef plist< LoopLoops
typedef Loops Trim
typedef plist< TrimTrims

Public Member Functions

INLINE EggNurbsSurface (const string &name="")
INLINE EggNurbsSurface (const EggNurbsSurface &copy)
INLINE EggNurbsSurface & operator= (const EggNurbsSurface &copy)
void setup (int u_order, int v_order, int num_u_knots, int num_v_knots)
INLINE void set_u_order (int u_order)
INLINE void set_v_order (int v_order)
void set_num_u_knots (int num)
void set_num_v_knots (int num)
INLINE void set_u_knot (int k, double value)
INLINE void set_v_knot (int k, double value)
INLINE void set_cv (int ui, int vi, EggVertex *vertex)
bool is_valid () const
INLINE int get_u_order () const
INLINE int get_v_order () const
INLINE int get_u_degree () const
INLINE int get_v_degree () const
INLINE int get_num_u_knots () const
INLINE int get_num_v_knots () const
INLINE int get_num_u_cvs () const
INLINE int get_num_v_cvs () const
INLINE int get_num_cvs () const
INLINE int get_u_index (int vertex_index) const
INLINE int get_v_index (int vertex_index) const
INLINE int get_vertex_index (int ui, int vi) const
bool is_closed_u () const
bool is_closed_v () const
INLINE double get_u_knot (int k) const
INLINE double get_v_knot (int k) const
INLINE EggVertexget_cv (int ui, int vi) const
virtual void write (ostream &out, int indent_level) const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

Curves _curves_on_surface
Trims _trims

Protected Member Functions

virtual void r_apply_texmats (EggTextureCollection &textures)

Private Types

typedef vector_double Knots

Private Attributes

Knots _u_knots
Knots _v_knots
int _u_order
int _v_order

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef plist< PT(EggNurbsCurve) EggNurbsSurface::Curves)
 

Definition at line 37 of file eggNurbsSurface.h.

typedef vector_double EggNurbsSurface::Knots [private]
 

Definition at line 91 of file eggNurbsSurface.h.

typedef Curves EggNurbsSurface::Loop
 

Definition at line 38 of file eggNurbsSurface.h.

typedef plist<Loop> EggNurbsSurface::Loops
 

Definition at line 39 of file eggNurbsSurface.h.

typedef Loops EggNurbsSurface::Trim
 

Definition at line 40 of file eggNurbsSurface.h.

typedef plist<Trim> EggNurbsSurface::Trims
 

Definition at line 41 of file eggNurbsSurface.h.


Constructor & Destructor Documentation

INLINE EggNurbsSurface::EggNurbsSurface const string &  name = ""  ) 
 

INLINE EggNurbsSurface::EggNurbsSurface const EggNurbsSurface &  copy  ) 
 


Member Function Documentation

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

Reimplemented from EggSurface.

Definition at line 110 of file eggNurbsSurface.h.

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

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

Reimplemented from EggSurface.

Definition at line 99 of file eggNurbsSurface.h.

INLINE EggVertex* EggNurbsSurface::get_cv int  ui,
int  vi
const
 

INLINE int EggNurbsSurface::get_num_cvs  )  const
 

Referenced by is_valid().

INLINE int EggNurbsSurface::get_num_u_cvs  )  const
 

INLINE int EggNurbsSurface::get_num_u_knots  )  const
 

Referenced by is_valid().

INLINE int EggNurbsSurface::get_num_v_cvs  )  const
 

INLINE int EggNurbsSurface::get_num_v_knots  )  const
 

Referenced by is_valid().

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

Reimplemented from EggSurface.

Definition at line 107 of file eggNurbsSurface.h.

References EggSurface::get_class_type().

INLINE int EggNurbsSurface::get_u_degree  )  const
 

INLINE int EggNurbsSurface::get_u_index int  vertex_index  )  const
 

INLINE double EggNurbsSurface::get_u_knot int  k  )  const
 

Referenced by is_closed_u(), and is_valid().

INLINE int EggNurbsSurface::get_u_order  )  const
 

Referenced by is_closed_u(), and write().

INLINE int EggNurbsSurface::get_v_degree  )  const
 

INLINE int EggNurbsSurface::get_v_index int  vertex_index  )  const
 

INLINE double EggNurbsSurface::get_v_knot int  k  )  const
 

Referenced by is_closed_v(), and is_valid().

INLINE int EggNurbsSurface::get_v_order  )  const
 

Referenced by is_closed_v(), and write().

INLINE int EggNurbsSurface::get_vertex_index int  ui,
int  vi
const
 

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

Reimplemented from EggSurface.

Definition at line 102 of file eggNurbsSurface.h.

References EggPrimitive::get_class_type(), EggPrimitive::init_type(), and register_type().

Referenced by init_libegg().

bool EggNurbsSurface::is_closed_u  )  const
 

Definition at line 152 of file eggNurbsSurface.cxx.

References get_u_knot(), and get_u_order().

bool EggNurbsSurface::is_closed_v  )  const
 

Definition at line 178 of file eggNurbsSurface.cxx.

References get_v_knot(), and get_v_order().

bool EggNurbsSurface::is_valid  )  const
 

Definition at line 114 of file eggNurbsSurface.cxx.

References get_num_cvs(), get_num_u_knots(), get_num_v_knots(), get_u_knot(), get_v_knot(), and EggPrimitive::size().

INLINE EggNurbsSurface& EggNurbsSurface::operator= const EggNurbsSurface &  copy  ) 
 

void EggNurbsSurface::r_apply_texmats EggTextureCollection textures  )  [protected, virtual]
 

Reimplemented from EggPrimitive.

Definition at line 252 of file eggNurbsSurface.cxx.

INLINE void EggNurbsSurface::set_cv int  ui,
int  vi,
EggVertex vertex
 

void EggNurbsSurface::set_num_u_knots int  num  ) 
 

Definition at line 67 of file eggNurbsSurface.cxx.

References _u_knots.

void EggNurbsSurface::set_num_v_knots int  num  ) 
 

Definition at line 92 of file eggNurbsSurface.cxx.

References _v_knots.

INLINE void EggNurbsSurface::set_u_knot int  k,
double  value
 

INLINE void EggNurbsSurface::set_u_order int  u_order  ) 
 

INLINE void EggNurbsSurface::set_v_knot int  k,
double  value
 

INLINE void EggNurbsSurface::set_v_order int  v_order  ) 
 

void EggNurbsSurface::setup int  u_order,
int  v_order,
int  num_u_knots,
int  num_v_knots
 

Definition at line 37 of file eggNurbsSurface.cxx.

References _u_knots, _u_order, _v_knots, and _v_order.

void EggNurbsSurface::write ostream &  out,
int  indent_level
const [virtual]
 

Reimplemented from EggAttributes.

Definition at line 195 of file eggNurbsSurface.cxx.

References _curves_on_surface, _trims, _u_knots, _v_knots, get_u_order(), EggSurface::get_u_subdiv(), get_v_order(), EggSurface::get_v_subdiv(), indent(), EggPrimitive::write_body(), EggNamedObject::write_header(), and write_long_list().


Member Data Documentation

Curves EggNurbsSurface::_curves_on_surface
 

Definition at line 84 of file eggNurbsSurface.h.

Referenced by write().

Trims EggNurbsSurface::_trims
 

Definition at line 85 of file eggNurbsSurface.h.

Referenced by write().

TypeHandle EggNurbsSurface::_type_handle [static, private]
 

Reimplemented from EggSurface.

Definition at line 23 of file eggNurbsSurface.cxx.

Knots EggNurbsSurface::_u_knots [private]
 

Definition at line 92 of file eggNurbsSurface.h.

Referenced by set_num_u_knots(), setup(), and write().

int EggNurbsSurface::_u_order [private]
 

Definition at line 94 of file eggNurbsSurface.h.

Referenced by setup().

Knots EggNurbsSurface::_v_knots [private]
 

Definition at line 93 of file eggNurbsSurface.h.

Referenced by set_num_v_knots(), setup(), and write().

int EggNurbsSurface::_v_order [private]
 

Definition at line 95 of file eggNurbsSurface.h.

Referenced by setup().


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