Panda3D
|
A single <Dxyz> or <Duv> or some such entry. More...
#include "eggMorph.h"
Public Member Functions | |
EggMorph (const string &name, const Parameter &offset) | |
void | clear_name () |
Resets the Namable's name to empty. | |
int | compare_to (const EggMorph< Parameter > &other, double threshold) const |
compare_to() compares a different space than the operator methods, which only check the name. | |
const string & | get_name () const |
const Parameter & | get_offset () const |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. | |
bool | operator!= (const EggMorph< Parameter > &other) const |
bool | operator< (const EggMorph< Parameter > &other) const |
bool | operator== (const EggMorph< Parameter > &other) const |
void | output (ostream &out) const |
Outputs the Namable. | |
void | output (ostream &out, const string &tag, int num_dimensions) const |
void | set_name (const string &name) |
void | set_offset (const Parameter &offset) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
A single <Dxyz> or <Duv> or some such entry.
This simply contains the morph name and the offset value. The class EggMorph is actually a template class on the type of value that is being offset; the specific kinds of morphs are instantiated from this below.
Definition at line 33 of file eggMorph.h.
void Namable::clear_name | ( | ) | [inline, inherited] |
int EggMorph< Parameter >::compare_to | ( | const EggMorph< Parameter > & | other, |
double | threshold | ||
) | const [inline] |
compare_to() compares a different space than the operator methods, which only check the name.
compare_to() compares the name and the value as well.
Definition at line 96 of file eggMorph.I.
bool Namable::has_name | ( | ) | const [inline, inherited] |
Returns true if the Namable has a nonempty name set, false if the name is empty.
Definition at line 75 of file namable.I.
Referenced by XFileNode::add_child(), EggComponentData::add_name(), Texture::do_read_dds_file(), Texture::do_read_one(), Character::fillin(), EggGroupUniquifier::get_category(), EggXfmSAnim::optimize(), NodePathComponent::output(), AsyncTask::output(), EggNamedObject::output(), EggSAnimData::write(), EggPrimitive::write_body(), ParametricCurveCollection::write_egg(), ParametricCurve::write_egg(), EggNamedObject::write_header(), XFileDataNodeTemplate::write_text(), and XFileDataDef::write_text().
void Namable::output | ( | ostream & | out | ) | const [inline, inherited] |
Outputs the Namable.
This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
Reimplemented in AnimBundle, AnimChannelFixed< SwitchType >, AnimChannelMatrixFixed, AnimControl, AnimGroup, PartBundle, CollisionNode, CollisionTraverser, ButtonNode, EggNamedObject, AsyncTask, AsyncTaskChain, AsyncTaskManager, AdaptiveLru, Material, SimpleLru, HermiteCurve, RopeNode, SheetNode, Fog, GeomNode, LensNode, Loader, PandaNode, PlaneNode, PolylightNode, PortalNode, CallbackNode, FadeLODNode, LODNode, ForceNode, Thread, MouseRecorder, TextNode, MouseWatcherRegion, WebcamVideo, and MayaShader.