V-ART
curve.h
Go to the documentation of this file.
1 
5 #ifndef VART_CURVE_H
6 #define VART_CURVE_H
7 
8 #include "vart/graphicobj.h"
9 #include "vart/point4d.h"
10 #include "vart/transform.h"
11 #include <vector>
12 
13 namespace VART {
18  class Curve : public GraphicObj {
19  public:
23  virtual void GetPoint(double t, Point4D* result)=0;
24 
26  void ApplyTransform(const Transform& t);
27 
28  // FixMe: Implement DrawInstanceOGL?
29  protected:
30  std::vector<Point4D> controlPoints;
31  }; // end class declaration
32 } // end namespace
33 #endif
virtual void GetPoint(double t, Point4D *result)=0
Returns a point of the curve.
Points and vectors using homogeneous coordinates.
Definition: point4d.h:22
Header file for V-ART class "GraphicObj".
std::vector< Point4D > controlPoints
Definition: curve.h:30
void ApplyTransform(const Transform &t)
Applies a transformation to all controlPoints.
Definition: curve.cpp:7
A paramteric curve in 3D/4D space.
Definition: curve.h:18
Geometric transformations.
Definition: transform.h:24
An scene node that is associated with a shape.
Definition: graphicobj.h:18
Header file for V-ART class "Transform".
Header file for V-ART class "Point4D".