Public Types | |
enum | ExternalizationType { Input = 1, Output = 2, IO = 3 } |
Public Member Functions | |
Path () | |
default path - all points are 0 | |
Path (const Path &p) | |
copy path p | |
Path (const Point3 &sp, const Orient &so, const Point3 &ep, const Orient &eo) | |
simple line segment start[position|orientation] - end[position|orientation] | |
Path (const array< Point3 > &points, const array< Orient > &orients=array< Orient >(), bool deltas=false) | |
Path (const array< Vector > &points, bool deltas=false) | |
Path (const ExpressionVector &p) | |
arbitrary path defined by symbolic expressions for x,y,z,qx,qy,qz,qw in terms of s | |
virtual String | className () const |
Point3 | position (Real s) const |
get cartesian position at s:[0..1] | |
Orient | orientation (Real s) const |
get orientation at s:[0..1] | |
void | resample (Int samples=100) |
discard distinguished points and replace them by 'samples' distingushed points over s=[0..1] | |
void | resample (const Real dxmax) |
add distinguished points as necessary to ensure that distance between the positions of any pair of distinguished points is <= dxmax | |
const String & | getCoordFrame () const |
void | setCoordFrame (const String &coordFrame) |
set application defined coordinate frame specifier. | |
const String & | getUnits () const |
void | setUnits (const String &unitSpecifier) |
set application defined unit specifier. | |
Real | distinguishedValue (Int i) const |
Int | numDistinguishedValues () const |
< number of distinguished s values | |
void | translate (const Vector3 &t) |
translate the path position by t | |
void | rotate (const Quat4 &r) |
rotate the path orientation by r | |
void | transform (const Matrix4 &m) |
transform the path by m | |
void | scalePosition (Real s) |
scale position coords. by s | |
virtual void | serialize (Serializer &s) |
read or write object state to Serializer | |
virtual bool | formatSupported (String format, Real version=1.0, ExternalizationType type=IO) const |
query if specific format is supported (for input, output or both) | |
virtual void | externalize (Externalizer &e, String format="", Real version=1.0) |
read or write object state to Externalizer | |
virtual bool | isSameKindAs (const Object &) const |
virtual void | externalize (Externalizer &e, String format="", Real version=1.0) const |
write object state to Externalizer (throws if e is in Input) | |
void | load (ref< VFile > archive, const String &format="", Real version=1.0) |
void | save (ref< VFile > archive, const String &format="", Real version=1.0) |
Static Public Member Functions | |
template<class BaseClass, class DerivedClass> void | registerSerializableInstantiator (const SerializableInstantiator &instantiator) |
void | registerSerializableInstantiator (const String &baseClassTypeName, const String &derivedClassTypeName, const SerializableInstantiator &instantiator) |
template<class BaseClass> const SerializableInstantiator & | getSerializableInstantiator (const String &derivedClassTypeName) |
const SerializableInstantiator & | getSerializableInstantiator (const String &baseClassTypeName, const String &derivedClassTypeName) |
Protected Member Functions | |
virtual void | create () |
virtual void | create (const Path &p) |
virtual void | create (const Point3 &sp, const Orient &so, const Point3 &ep, const Orient &eo) |
virtual void | create (const array< Point3 > &points, const array< Orient > &orients, bool deltas) |
virtual void | create (const array< Vector > &points, bool deltas) |
virtual void | create (const ExpressionVector &p) |
void | init (const array< Point3 > &points, const array< Orient > &orients, bool deltas) |
Protected Attributes | |
ref< PathRep > | rep |
representation | |
String | frame |
application defined coord. frame specifier | |
String | units |
application defined unit specifier | |
Serializable::SerializableDerivedInstantiator< LineSegPathRep > | lineSegPathRepInstantiator |
Serializable::SerializableDerivedInstantiator< WaypointPathRep > | waypointPathRepInstantiator |
Friends | |
class | Trajectory |
Definition at line 50 of file Path.
|
Definition at line 40 of file Externalizable. |
|
default path - all points are 0
|
|
copy path p
|
|
simple line segment start[position|orientation] - end[position|orientation]
|
|
a set of 'waypoints' - actually points and their corresponding orientations. if deltas is true, the arrays are considered to specify the inter-waypoint deltas instead (with the first point/orient being 0) |
|
a set of 'waypoints'. If vector dim is 3, specifies position only; dim 6, specifies position and orientation using the EulerRPY (roll, pitch, yaw) convention; dim 7 specifies position and orientation as a quaternion qx,qy,qz,qw. if deltas is true, the arrays are considered to specify the inter-waypoint deltas instead (with the first point/orient being 0) |
|
arbitrary path defined by symbolic expressions for x,y,z,qx,qy,qz,qw in terms of s
|
|
return the name of the object's class type. Must be defined by derived classes. Implements base::Object. Reimplemented in base::Trajectory, and gfx::VisualPath. Definition at line 78 of file Path. References base::String. |
|
Reimplemented in base::Trajectory. |
|
Reimplemented in base::Trajectory. |
|
Reimplemented in base::Trajectory. |
|
Reimplemented in base::Trajectory. |
|
|
|
Reimplemented in base::Trajectory. |
|
some values of s may correspond to distinguished points along a path. the values s=0 and s=1 are always distinguished values. For example, if the path was specified using waypoints, then there will be a distinguished value of s for each waypoint. 0 <= i < numDistinguishedValues() Definition at line 114 of file Path. References base::Int, and base::Real. |
|
|
read or write object state to Externalizer
Implements base::Externalizable. Reimplemented in base::Trajectory. |
|
query if specific format is supported (for input, output or both)
Implements base::Externalizable. Reimplemented in base::Trajectory. |
|
get application defined coordinate frame specifier. Some means of creating a Path provide a coordinate frame specifier. e.g. xml externalization this returns that string (or whatever was set via setCoordFrame() - defaults to the empty String) Definition at line 95 of file Path. References frame, and base::String. |
|
|
|
Definition at line 71 of file Serializable. References base::String. |
|
get application defined unit specifier. Some means of creating a Path provide unit specifier. e.g. xml externalization this returns that string (or whatever was set via setUnits() - defaults to the empty String) Definition at line 104 of file Path. References base::String, and units. |
|
|
|
|
|
|
|
< number of distinguished s values
Definition at line 116 of file Path. References base::Int. |
|
get orientation at s:[0..1]
Definition at line 84 of file Path. References base::Real. |
|
get cartesian position at s:[0..1]
Definition at line 81 of file Path. References base::Point3, and base::Real. |
|
|
|
Definition at line 62 of file Serializable. |
|
add distinguished points as necessary to ensure that distance between the positions of any pair of distinguished points is <= dxmax
Reimplemented in base::Trajectory. |
|
discard distinguished points and replace them by 'samples' distingushed points over s=[0..1]
Reimplemented in base::Trajectory. |
|
rotate the path orientation by r
|
|
|
|
scale position coords. by s
Definition at line 129 of file Path. References base::Real. |
|
read or write object state to Serializer
Implements base::Serializable. Reimplemented in base::Trajectory. |
|
set application defined coordinate frame specifier.
Definition at line 98 of file Path. References frame, and base::String. |
|
set application defined unit specifier.
Definition at line 107 of file Path. References base::String, and units. |
|
transform the path by m
|
|
translate the path position by t
|
|
|
|
application defined coord. frame specifier
Definition at line 147 of file Path. Referenced by getCoordFrame(), and setCoordFrame(). |
|
|
|
representation
|
|
application defined unit specifier
Definition at line 148 of file Path. Referenced by getUnits(), and setUnits(). |
|
|