S_Cylinder.h
Go to the documentation of this file.
1 #ifndef _S_CYLINDER_H
2 #define _S_CYLINDER_H
3 
5 
6 namespace sch
7 {
9 {
10 public:
13 
14  SCH_API virtual S_Cylinder * clone() const;
15 
16  SCH_API const Point3 & getP1() const;
17 
18  SCH_API const Point3 & getP2() const;
19 
21 
22 protected:
23  SCH_API virtual Point3 l_Support(const Vector3 & v, int & lastFeature) const;
24  SCH_API virtual S_ObjectType getType() const;
25 
27 
29 
31 };
32 } // namespace sch
33 #endif //_S_CYLINDER_H
Definition: S_Cylinder.h:9
Scalar radius_
Definition: S_Cylinder.h:30
SCH_API Scalar getRadius() const
virtual SCH_API S_ObjectType getType() const
must be overloaded to return the type
SCH_API const Point3 & getP1() const
Vector3 normal_
Definition: S_Cylinder.h:28
SCH_API S_Cylinder(Point3 p1, Point3 p2, Scalar radius)
virtual SCH_API Point3 l_Support(const Vector3 &v, int &lastFeature) const
gives the support point for a given vector in local cordinates and a given last feature....
Point3 p1_
Definition: S_Cylinder.h:26
virtual SCH_API S_Cylinder * clone() const
Returns a copy of this S_Object.
Point3 p2_
Definition: S_Cylinder.h:26
SCH_API const Point3 & getP2() const
SCH_API ~S_Cylinder()
Definition: S_ObjectNormalized.h:16
S_ObjectType
type of a solid object. Don't use it to cast !
Definition: S_Object.h:234
Definition: CD_Pair.h:12
double Scalar
Definition: SCH_Types.h:23
#define SCH_API
Definition: sch_api.h:13