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:
11  SCH_API S_Capsule(Point3 p1, Point3 p2, Scalar radius);
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 
20  SCH_API Scalar getRadius() const;
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
sch
Definition: CD_Pair.h:11
sch::S_Object::S_ObjectType
S_ObjectType
type of a solid object. Don't use it to cast !
Definition: S_Object.h:233
SCH_API
#define SCH_API
Definition: sch_api.h:13
sch::S_Capsule::p1_
Point3 p1_
Definition: S_Capsule.h:26
sch::S_Capsule::~S_Capsule
SCH_API ~S_Capsule()
sch::S_Capsule::getP2
const SCH_API Point3 & getP2() const
sch::S_Capsule::getP1
const SCH_API Point3 & getP1() const
sch::S_Capsule::getType
virtual SCH_API S_ObjectType getType() const
must be overloaded to return the type
sch::S_Capsule::S_Capsule
SCH_API S_Capsule(Point3 p1, Point3 p2, Scalar radius)
S_ObjectNormalized.h
sch::S_ObjectNormalized
Definition: S_ObjectNormalized.h:15
sch::S_Capsule::getRadius
SCH_API Scalar getRadius() const
CD_Matrix::Vector3T< Scalar, false >
sch::S_Capsule::radius_
Scalar radius_
Definition: S_Capsule.h:28
sch::S_Capsule
Definition: S_Capsule.h:8
sch::S_Capsule::p2_
Point3 p2_
Definition: S_Capsule.h:26
sch::Scalar
double Scalar
Definition: SCH_Types.h:23
sch::S_Capsule::clone
virtual SCH_API S_Capsule * clone() const
Returns a copy of this S_Object.
sch::S_Capsule::l_Support
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....