|
| | ParameterizedCatmullRomSpline (agx::Real alpha) |
| |
| | AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxUtil::ParameterizedCatmullRomSpline) |
| |
| virtual Point | evaluate (size_t index, agx::Real t) const override |
| |
| Tangent | getTangent (size_t index, agx::Real t) const override |
| |
| void | updateTangents () override |
| | Compute tangents given current set of points.
|
| |
| | Spline () |
| | Default constructor.
|
| |
| void | add (const agx::Vec3 &point, agx::Real tension=Point::DEFAULT_TENSION, agx::Real stretch=Point::DEFAULT_STRETCH, agx::Real curvature=Point::DEFAULT_CURVATURE) |
| | Add point to the control points given tension (1 max, 0 min) and stretch.
|
| |
| | AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxUtil::Spline) |
| |
| virtual void | clear () |
| | Clears control points and tangents.
|
| |
| virtual Point | evaluate (size_t index, agx::Real t) const =0 |
| | Interpolate from point with index index a time t forward (0 <= t <= 1)
|
| |
| size_t | getNumPoints () const |
| |
| PointVector & | getPoints () |
| |
| const PointVector & | getPoints () const |
| |
| virtual Tangent | getTangent (size_t, agx::Real) const |
| |
| virtual agx::Real | getTension (size_t index, agx::Real time) const |
| | Linear interpolate of tension from point at index.
|
| |
| void | restore (agxStream::InputArchive &in) override |
| |
| void | store (agxStream::OutputArchive &out) const override |
| |
| virtual void | updateTangents ()=0 |
| | All control points are added, computes the tangents.
|
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| virtual | ~Serializable () |
| | Destructor for normal C++ use but hidden from SWIG bindings.
|
| |
| virtual const char * | getClassName () const |
| |
| bool | getEnableSerialization () const |
| |
| bool | getEnableUuidGeneration () |
| |
| agx::UInt32 | getIndex () const |
| | This index is given at creation of this object.
|
| |
| virtual StorageAgent * | getStorageAgent () const =0 |
| |
| agx::Uuid | getUuid () const |
| |
| bool | isFinished () const |
| |
| void | setEnableSerialization (bool flag) |
| | Set to false to disable serialization of this object.
|
| |
| void | setFinished () |
| | Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
|
| |
| void | setUuid (const agx::Uuid &uuid) |
| | Explicitly set a Uuid on a serializable object.
|
| |
Special case of a cardinal spline.
Assumes uniform parameter spacing https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull%E2%80%93Rom_spline
Definition at line 275 of file Spline.h.