IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ScaleTransform3d.h
1 // ScaleTransform3d.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_SCALETRANSFORM3D_H__
16 #define __IPSDKGEOMETRY_SCALETRANSFORM3D_H__
17 
18 #include <IPSDKGeometry/Transform/3d/BaseGeometryTransform3d.h>
19 #include <IPSDKMath/Geometry/3d/Transform/Scale3d.h>
20 
21 namespace ipsdk {
22 namespace geom {
23 
26 
28 {
29  // declare geometry transform 3d
31 
32 // predefined public types
33 public:
35  static const eTransform3dType::domain g_transform3dType = eTransform3dType::eT3DT_Scale;
36 
37 public:
41  ScaleTransform3d(const ipReal64 scale);
45 
46 // methods
47 public:
49  eTransform3dType getTransform3dType() const;
50 
53  void init(const ipReal64 scale);
54  void init(const math::transform::Scale3d& transform);
56 
57 protected:
60  template <typename T>
61  void processPoint(Point3dData<T>& entity) const;
62  template <typename T>
63  bool processInSitu(Point3d<T>& entity) const;
64  bool processInSitu(Vector3d& entity) const;
65  template <typename T>
66  bool processInSitu(BoundingBox3d<T>& entity) const;
67  template <typename T>
68  bool processInSitu(PointCloud3d<T>& entity) const;
69  template <typename T>
70  bool processInSitu(Sphere3d<T>& entity) const;
71  template <typename T>
72  bool processInSitu(Ellipsoid3d<T>& entity) const;
73  template <typename T>
74  bool processInSitu(Cube3d<T>& entity) const;
75  template <typename T>
76  bool processInSitu(Cuboid3d<T>& entity) const;
77  template <typename T>
78  bool processInSitu(Mesh3d<T>& entity) const;
79  template <typename T>
80  bool processInSitu(MeshWithHoles3d<T>& entity) const;
81  bool processInSitu(Shape3d& entity) const;
82  template <typename T>
83  bool processInSitu(Segment3d<T>& entity) const;
84  template <typename T>
85  bool processInSitu(Triangle3d<T>& entity) const;
87 
88 // attributes
89 protected:
92 };
93 
96 
97 inline eTransform3dType
99 {
100  return g_transform3dType;
101 }
102 
103 inline void
105 {
106  _transform.setParams(scale);
107 }
108 
109 inline void
111 {
112  _transform = transform;
113 }
114 
117 
118 } // end of namespace geom
119 } // end of namespace ipsdk
120 
121 #endif // __IPSDKGEOMETRY_SCALETRANSFORM3D_H__
3d ellipsoid associated to cartesian 3d coordinates For a non rotated ellipse, the major radius follo...
Definition: Ellipsoid3d.h:39
3d segment associated to two points
Definition: Segment3d.h:38
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eTransform3dType getTransform3dType() const
method allowing to retrieve entity 2d type
Definition: ScaleTransform3d.h:98
void setParams(const ipReal64 scale)
select parameters associated to transformation
Definition: Scale3d.h:111
Point class associated to cartesian 3d coordinates.
Definition: GeometryEntity3dTypes.h:29
3d sphere associated to cartesian 3d coordinates
Definition: Sphere3d.h:36
eTransform3dType
Enumerate describing geometry 3d transform type.
Definition: GeometryTransform3dTypes.h:33
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
math::transform::Scale3d _transform
underlying transformation
Definition: ScaleTransform3d.h:91
void init(const ipReal64 scale)
initialization of transformation parameters
Definition: ScaleTransform3d.h:104
Scale.
Definition: GeometryTransform3dTypes.h:39
Vector class associated to spherical 3d coordinates.
Definition: Vector3d.h:32
Isotropic 3d scale transformation.
Definition: ScaleTransform3d.h:27
#define IPSDK_DECLARE_GEOMETRY_TRANSFORM_3D(libraryName, className)
Macro allowing to declare a geometry transform 3d.
Definition: GeometryTransform3dHdrMacros.h:26
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
Base class for geometry 3d transformations.
Definition: BaseGeometryTransform3d.h:31
Rectangular 3d bounding box class associated to cartesian 3d coordinates.
Definition: BoundingBox3d.h:37
3d triangle associated to cartesian 3d coordinates
Definition: Triangle3d.h:37
Definition: Scale3d.h:32
Closed mesh associated to a triangulated boundary.
Definition: Mesh3d.h:43
static const eTransform3dType::domain g_transform3dType
geometry transformation type
Definition: ScaleTransform3d.h:35
3d cuboid (rectangular parallelepiped) class associated to cartesian 3d coordinates ...
Definition: Cuboid3d.h:35
Unordered collection of 3d points.
Definition: PointCloud3d.h:35
Closed mesh potentially associated to interior mesh holes.
Definition: MeshWithHoles3d.h:39
Lightweight structure used to store Point3d data.
Definition: GeometryEntity3dTypes.h:27
Shape 3d associated to one or more closed mesh 3d.
Definition: Shape3d.h:34
3d cube class associated to cartesian 3d coordinates
Definition: Cube3d.h:35