Panda3D
Public Types | Public Member Functions | Static Public Member Functions
EggCurve Class Reference

A parametric curve of some kind. More...

#include "eggCurve.h"

Inheritance diagram for EggCurve:
EggPrimitive EggNode EggAttributes EggRenderMode EggNamedObject MemoryBase EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase EggNurbsCurve

List of all members.

Public Types

enum  CurveType { CT_none, CT_xyz, CT_hpr, CT_t }

Public Member Functions

 EggCurve (const string &name="")
 EggCurve (const EggCurve &copy)
virtual TypeHandle force_init_type ()
CurveType get_curve_type () const
 Returns the indicated type of the curve.
int get_subdiv () const
 Returns the requested number of subdivisions, or 0 if no particular subdivisions have been requested.
virtual TypeHandle get_type () const
EggCurveoperator= (const EggCurve &copy)
void set_curve_type (CurveType type)
 Sets the type of the curve.
void set_subdiv (int subdiv)
 Sets the number of subdivisions that will be requested across the curve.

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
static CurveType string_curve_type (const string &string)
 Returns the CurveType value associated with the given string representation, or CT_invalid if the string does not match any known CurveType value.

Detailed Description

A parametric curve of some kind.

See EggNurbsCurve.

Definition at line 27 of file eggCurve.h.


Member Function Documentation

EggCurve::CurveType EggCurve::get_curve_type ( ) const [inline]

Returns the indicated type of the curve.

Definition at line 99 of file eggCurve.I.

Referenced by EggNurbsCurve::write().

int EggCurve::get_subdiv ( ) const [inline]

Returns the requested number of subdivisions, or 0 if no particular subdivisions have been requested.

Definition at line 76 of file eggCurve.I.

Referenced by EggNurbsCurve::write().

void EggCurve::set_curve_type ( EggCurve::CurveType  type) [inline]

Sets the type of the curve.

This is primarily used as a hint to any code that may need to deal with this curve.

Definition at line 89 of file eggCurve.I.

void EggCurve::set_subdiv ( int  subdiv) [inline]

Sets the number of subdivisions that will be requested across the curve.

(This doesn't necessary guarantee that this number of subdivisions will be made; it's just a hint to any curve renderer or quick tesselator.) Set the number to 0 to disable the hint.

Definition at line 65 of file eggCurve.I.

EggCurve::CurveType EggCurve::string_curve_type ( const string &  string) [static]

Returns the CurveType value associated with the given string representation, or CT_invalid if the string does not match any known CurveType value.

Definition at line 31 of file eggCurve.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations