Panda3D
Public Member Functions | Static Public Member Functions

EggPoint Class Reference

A single point, or a collection of points as defined by a single <PointLight> entry. More...

#include "eggPoint.h"

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

List of all members.

Public Member Functions

 EggPoint (const string &name="")
 EggPoint (const EggPoint &copy)
virtual bool cleanup ()
 Cleans up modeling errors in whatever context this makes sense.
void clear_perspective ()
void clear_thick ()
virtual TypeHandle force_init_type ()
bool get_perspective () const
 Returns the perspective flag set on this particular point.
double get_thick () const
 Returns the thickness set on this particular point.
virtual TypeHandle get_type () const
bool has_perspective () const
bool has_thick () const
EggPointoperator= (const EggPoint &copy)
void set_perspective (bool perspective)
void set_thick (double thick)
virtual void write (ostream &out, int indent_level) const
 Writes the point to the indicated output stream in Egg format.

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Detailed Description

A single point, or a collection of points as defined by a single <PointLight> entry.

Definition at line 27 of file eggPoint.h.


Member Function Documentation

bool EggPoint::cleanup ( ) [virtual]

Cleans up modeling errors in whatever context this makes sense.

For instance, for a polygon, this calls remove_doubled_verts(true). For a point, it calls remove_nonunique_verts(). Returns true if the primitive is valid, or false if it is degenerate.

Reimplemented from EggPrimitive.

Definition at line 32 of file eggPoint.cxx.

References EggPrimitive::remove_nonunique_verts().

bool EggPoint::get_perspective ( ) const [inline]

Returns the perspective flag set on this particular point.

If there is no perspective flag set, returns false.

Definition at line 116 of file eggPoint.I.

Referenced by EggRenderState::fill_state(), and write().

double EggPoint::get_thick ( ) const [inline]

Returns the thickness set on this particular point.

If there is no thickness set, returns 1.0.

Definition at line 72 of file eggPoint.I.

Referenced by EggRenderState::fill_state(), and write().

void EggPoint::write ( ostream &  out,
int  indent_level 
) const [virtual]

Writes the point to the indicated output stream in Egg format.

Implements EggPrimitive.

Definition at line 44 of file eggPoint.cxx.

References get_perspective(), get_thick(), EggPrimitive::write_body(), and EggNamedObject::write_header().


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