S_Capsule.h
Go to the documentation of this file.
1 #ifndef _S_CAPSULE_H
2 #define _S_CAPSULE_H
3 
5 
6 namespace sch
7 {
9 {
10 public:
13 
14  SCH_API virtual S_Capsule * 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 };
30 } // namespace sch
31 #endif //_S_CAPSULE_H
Definition: S_Capsule.h:9
SCH_API const Point3 & getP1() const
Scalar radius_
Definition: S_Capsule.h:28
Point3 p2_
Definition: S_Capsule.h:26
SCH_API ~S_Capsule()
virtual SCH_API S_Capsule * clone() const
Returns a copy of this S_Object.
SCH_API const Point3 & getP2() const
Point3 p1_
Definition: S_Capsule.h:26
virtual SCH_API S_ObjectType getType() const
must be overloaded to return the type
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....
SCH_API S_Capsule(Point3 p1, Point3 p2, Scalar radius)
SCH_API Scalar getRadius() const
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