15 #include "cConstrainTransformInterval.h"
16 #include "transformState.h"
17 #include "config_interval.h"
19 TypeHandle CConstrainTransformInterval::_type_handle;
53 check_started(get_class_type(),
"priv_step");
58 CPT(TransformState) transform;
61 interval_cat.warning()
62 <<
"Unable to copy transform in CConstrainTransformInterval::priv_step;\n"
64 <<
") and target (" << _target.
get_name()
65 <<
") are not in the same graph.\n";
82 void CConstrainTransformInterval::
83 output(ostream &out)
const {
NodePath get_parent(Thread *current_thread=Thread::get_current_thread()) const
Returns the NodePath to the parent of the referenced node: that is, this NodePath, shortened by one node.
const TransformState * get_transform(Thread *current_thread=Thread::get_current_thread()) const
Returns the complete transform object set on this node.
const string & get_name() const
Returns the interval's name.
void set_transform(const TransformState *transform, Thread *current_thread=Thread::get_current_thread())
Changes the complete transform object on this node.
double get_duration() const
Returns the duration of the interval in seconds.
string get_name() const
Returns the name of the referenced node.
The base class for a family of intervals that constrain some property to a value over time...
bool is_empty() const
Returns true if the NodePath contains no nodes.
TypeHandle is the identifier used to differentiate C++ class types.
bool is_same_graph(const NodePath &other, Thread *current_thread=Thread::get_current_thread()) const
Returns true if the node represented by this NodePath is parented within the same graph as that of th...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...