S_Cone.h
Go to the documentation of this file.
1 #pragma once
2 #ifndef _S_CONE_H_SCH
3 # define _S_CONE_H_SCH
4 
6 
7 namespace sch
8 {
9 
11 {
12 public:
21  SCH_API S_Cone(const Scalar & angle, const Scalar & height);
22  SCH_API virtual ~S_Cone();
23 
24  SCH_API virtual S_Cone * clone() const;
25 
26  SCH_API virtual Point3 l_Support(const Vector3 & v, int & lastFeature) const;
27 
28  SCH_API virtual S_ObjectType getType() const;
29 
30  SCH_API virtual Scalar getAngle() const;
31  SCH_API virtual Scalar getHeight() const;
32 
33 protected:
38 };
39 } // namespace sch
40 
41 #endif
42 
43 
sch
Definition: CD_Pair.h:11
sch::S_Cone::angleTan_
Scalar angleTan_
Definition: S_Cone.h:36
sch::S_Cone::getHeight
virtual SCH_API Scalar getHeight() 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_Cone::getType
virtual SCH_API S_ObjectType getType() const
must be overloaded to return the type
sch::S_Cone::clone
virtual SCH_API S_Cone * clone() const
Returns a copy of this S_Object.
sch::S_Cone::~S_Cone
virtual SCH_API ~S_Cone()
sch::S_Cone::angle_
Scalar angle_
Definition: S_Cone.h:34
S_ObjectNonNormalized.h
sch::S_ObjectNonNormalized
Definition: S_ObjectNonNormalized.h:16
sch::S_Cone::baseRadius_
Scalar baseRadius_
Definition: S_Cone.h:37
sch::S_Cone
Definition: S_Cone.h:10
sch::S_Cone::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....
CD_Matrix::Vector3T< Scalar, false >
sch::S_Cone::height_
Scalar height_
Definition: S_Cone.h:35
sch::Scalar
double Scalar
Definition: SCH_Types.h:23
sch::S_Cone::S_Cone
SCH_API S_Cone(const Scalar &angle, const Scalar &height)
constructor the cone centered at the apex and having its axis aligned on the z axis and directed abov...
sch::S_Cone::getAngle
virtual SCH_API Scalar getAngle() const