Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PolyBezier.h

00001 /*
00002   File: PolyBezier.h
00003 
00004   Copyright(C) C. Kotterink, Computed Graphics
00005 */
00006 #ifndef POLYBEZIER_H
00007 #define POLYBEZIER_H
00008 
00009 #include<ImplicitShape.h>
00010 
00011 #include<Vertex3.h>
00012 #include<real.h>
00013 #include<vector>
00014 
00017 class PolyBezier : public ImplicitShape
00018 {
00019     DYNAMIC_OBJECT;
00020 public:
00021     PolyBezier(real radius = 1.0);
00022 
00023     real closestPoint(const Vertex3 &v, Vertex3 &p);
00024     void addPoint(Vertex3 &p, Vertex3 &d);
00025 
00026     // Inherited from ImplicitShape
00027     real distance(const Vertex3 &v);
00028 
00029     // Inherited from Shape
00030     Vertex3 normal(const Vertex3 &v);
00031 
00032     // Inherited from DynamicObject
00033     void parseSymbol(Token &t, ObjectFile &file);
00034     void writeParams(ostream &stream);
00035 
00036 protected:
00037     // Inherited from DynamicObject
00038     void createSymbols();
00039 
00040     vector<Vertex3> point;
00041     real r;
00042 
00043 private:
00044     typedef ImplicitShape super;
00045 };
00046 #endif

This documentation was generated using doxygen. If you have any comments or additions please mail me.