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:
11  SCH_API S_Cylinder(Point3 p1, Point3 p2, Scalar radius);
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 
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 
31 };
32 } // namespace sch
33 #endif //_S_CYLINDER_H
sch
Definition: CD_Pair.h:11
sch::S_Cylinder::getRadius
SCH_API Scalar getRadius() const
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_Cylinder
Definition: S_Cylinder.h:8
sch::S_Cylinder::getP1
const SCH_API Point3 & getP1() const
sch::S_Cylinder::getP2
const SCH_API Point3 & getP2() const
sch::S_Cylinder::p2_
Point3 p2_
Definition: S_Cylinder.h:26
sch::S_Cylinder::S_Cylinder
SCH_API S_Cylinder(Point3 p1, Point3 p2, Scalar radius)
sch::S_Cylinder::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....
S_ObjectNormalized.h
sch::S_Cylinder::normal_
Vector3 normal_
Definition: S_Cylinder.h:28
sch::S_ObjectNormalized
Definition: S_ObjectNormalized.h:15
sch::S_Cylinder::clone
virtual SCH_API S_Cylinder * clone() const
Returns a copy of this S_Object.
CD_Matrix::Vector3T< Scalar, false >
sch::Scalar
double Scalar
Definition: SCH_Types.h:23
sch::S_Cylinder::p1_
Point3 p1_
Definition: S_Cylinder.h:26
sch::S_Cylinder::radius_
Scalar radius_
Definition: S_Cylinder.h:30
sch::S_Cylinder::~S_Cylinder
SCH_API ~S_Cylinder()
sch::S_Cylinder::getType
virtual SCH_API S_ObjectType getType() const
must be overloaded to return the type