IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Attributes | List of all members
ipsdk::geom::Triangle3d< T > Class Template Reference

3d triangle associated to cartesian 3d coordinates More...

#include <Triangle3d.h>

Inheritance diagram for ipsdk::geom::Triangle3d< T >:
ipsdk::geom::BaseTypedGeometryEntity3d< T > ipsdk::geom::BaseGeometryEntity3d ipsdk::geom::BaseGeometryEntity ipsdk::BaseObjectWithSkeleton ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject

Public Member Functions

eCoordinateSystem3dType getCoordinateSystem3dType () const
 method allowing to retrieve coordinate system 3d type
 
eEntity3dType getEntity3dType () const
 method allowing to retrieve entity 3d type
 
Point3dData< ipReal64getBarycenter () const
 retrieve barycenter for triangle
 
ipReal64 perimeter () const
 retrieve triangle perimeter
 
ipReal64 area () const
 retrieve triangle area
 
Constructors and destructor
 Triangle3d ()
 
 Triangle3d (const Point3dData< T > &pt0, const Point3dData< T > &pt1, const Point3dData< T > &pt2)
 
 ~Triangle3d ()
 
void setCoords (const Point3dData< T > &pt0, const Point3dData< T > &pt1, const Point3dData< T > &pt2)
 access to the triangle parameters
 
void setPoint0 (const Point3dData< T > &pt0)
 access to the triangle parameters
 
Point3dData< T > & getPoint0 ()
 access to the triangle parameters
 
const Point3dData< T > & getPoint0 () const
 access to the triangle parameters
 
void setPoint1 (const Point3dData< T > &pt1)
 access to the triangle parameters
 
Point3dData< T > & getPoint1 ()
 access to the triangle parameters
 
const Point3dData< T > & getPoint1 () const
 access to the triangle parameters
 
void setPoint2 (const Point3dData< T > &pt2)
 access to the triangle parameters
 
Point3dData< T > & getPoint2 ()
 access to the triangle parameters
 
const Point3dData< T > & getPoint2 () const
 access to the triangle parameters
 
Vector3d getUnitNormal () const
 retrieve triangle unit normal (computes unit cross product of pt1-pt0 and pt2-pt0)
 
void getUnitNormal (ipReal64 &nx, ipReal64 &ny, ipReal64 &nz) const
 retrieve triangle unit normal (computes unit cross product of pt1-pt0 and pt2-pt0)
 
Vector3d getNormal () const
 retrieve triangle normal (computes cross product of pt1-pt0 and pt2-pt0)
 
void getNormal (ipReal64 &nx, ipReal64 &ny, ipReal64 &nz) const
 retrieve triangle normal (computes cross product of pt1-pt0 and pt2-pt0)
 
- Public Member Functions inherited from ipsdk::geom::BaseTypedGeometryEntity3d< T >
 BaseTypedGeometryEntity3d ()
 
virtual ~BaseTypedGeometryEntity3d ()=0
 
- Public Member Functions inherited from ipsdk::geom::BaseGeometryEntity3d
eCoordinateDimension getCoordinateDimension () const
 method allowing to retrieve entity underlying coordinates dimension
 
 BaseGeometryEntity3d ()
 
virtual ~BaseGeometryEntity3d ()=0
 
- Public Member Functions inherited from ipsdk::geom::BaseGeometryEntity
 BaseGeometryEntity ()
 
virtual ~BaseGeometryEntity ()=0
 
- Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton
const eSklSrzModegetSerializationMode () const
 retrieve serialization flag for object More...
 
void setSerializationMode (const eSklSrzMode &sklSrzMode) const
 set serialization flag for object
 
 BaseObjectWithSkeleton ()
 
 ~BaseObjectWithSkeleton ()
 
- Public Member Functions inherited from ipsdk::BaseSerializationObject
 BaseSerializationObject ()
 Default constructor.
 
virtual ~BaseSerializationObject ()=0
 destructor
 
- Public Member Functions inherited from ipsdk::BaseDynamicObject
virtual const std::string & getClassName () const
 method allowing to retrieve object class name
 
virtual BaseDynamicObjectcreateNew () const =0
 method allowing to create new instance of current object type
 
virtual DynamicObjectPtr createShared () const =0
 method allowing to create new shared instance of current object type
 
virtual bool hasCopySupport () const =0
 check whether objet has copy support
 
virtual BaseDynamicObjectduplicate () const =0
 method allowing to duplicate current object More...
 
virtual DynamicObjectPtr duplicateShared () const =0
 method allowing shared duplication of current object More...
 
 BaseDynamicObject ()
 
virtual ~BaseDynamicObject ()=0
 

Static Public Attributes

static const eCoordinateSystem3dType::domain g_coordinateSystem3dType = eCoordinateSystem3dType::eCS3DT_Cartesian
 coordinate system associated to entity
 
static const eEntity3dType::domain g_entity3dType = eEntity3dType::eE3DT_Triangle
 type associated to entity
 
- Static Public Attributes inherited from ipsdk::geom::BaseGeometryEntity3d
static const eCoordinateDimension::domain g_coordinateDimension = eCoordinateDimension::eCD_3d
 entity underlying coordinates dimension
 

Protected Attributes

Point3dData< T > _pt0
 points associated to triangle
 
Point3dData< T > _pt1
 points associated to triangle
 
Point3dData< T > _pt2
 points associated to triangle
 
- Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton
eSklSrzMode _sklSrzMode
 serialization flag for object More...
 

Additional Inherited Members

- Public Types inherited from ipsdk::geom::BaseTypedGeometryEntity3d< T >
typedef T DataType
 data type associated to coordinates
 
- Static Public Member Functions inherited from ipsdk::BaseSerializationObject
static ipUInt32 getVersion ()
 method allowing to retrieve class version information for serialization
 
- Static Public Member Functions inherited from ipsdk::BaseDynamicObject
static const std::string & getTypeName ()
 method allowing to retrieve name associated to class
 
- Protected Member Functions inherited from ipsdk::BaseSerializationObject
virtual BoolResult write (BaseOArchive &ar) const
 method allowing to ensure serialization write part for object
 
virtual BoolResult read (BaseIArchive &ar)
 method allowing to ensure serialization read part for object
 
- Protected Member Functions inherited from ipsdk::BaseDynamicObject
virtual void initCtorCopy (const BaseDynamicObject &object)
 
virtual void copy (const BaseDynamicObject &object)
 method allowing to copy data from another object
 

Detailed Description

template<typename T>
class ipsdk::geom::Triangle3d< T >

3d triangle associated to cartesian 3d coordinates

Author
E.Noirfalise
Date
2017/08/16

The documentation for this class was generated from the following file: