20 #ifndef __TY_RECTANGLE__
21 #define __TY_RECTANGLE__
116 void setSize(
float sizeX,
float sizeY);
123 void getSize(
float& sizeX,
float& sizeY);
170 void scale(
float factorX,
float factorY);
178 scale(factor, factor);
208 virtual bool deepCopy(
const TYElement* pOther,
bool copyId =
true,
bool pUseCopyTag =
false);
210 virtual std::string
toString()
const;
215 virtual double surface()
const;
268 void exportMesh(std::deque<OPoint3D>& points, std::deque<OTriangle>& triangles,
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
std::deque< OPoint3D > TYTabPoint3D
Collection de OPoint3D.
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
#define OPROTODECL(classname)
#define TY_EXTENSION_DECL_ONLY(classname)
Plan defined by its equation : ax+by+cz+d=0.
3D frame with a point and 3 vectors.
Class to define a segment.
virtual void inverseNormale()
bool operator!=(const TYRectangle &other) const
Operateur !=.
ORepere3D getORepere3D() const
void setSize(float sizeX, float sizeY)
virtual TYTabPoint getContourFerme(int n=-1) const
virtual DOM_Element toXML(DOM_Element &domElement)
virtual int intersects(const TYSurfaceInterface *pSurf, OSegment3D &seg) const
virtual OPlan plan() const
void scale(float factorX, float factorY)
void setDimension(float lon, float haut)
bool intersectRect(LPTYRectangle pRect, TYPoint originRect=TYPoint(0, 0, 0), TYPoint origin=TYPoint(0, 0, 0))
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
virtual const OPlan & getPlan() const
virtual int fromXML(DOM_Element domElement)
TYPolygon * toPolygon() const
void set(TYPoint pt0, TYPoint pt1, TYPoint pt2, TYPoint pt3)
virtual TYTabPoint getContour(int n=-1) const
virtual std::string toString() const
bool operator==(const TYRectangle &other) const
Operateur ==.
double getCircleEqDiameter()
virtual OVector3D normal() const
void exportMesh(std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, const TYGeometryNode &geonode) const
Export the surface as a triangular mesh.
virtual TYTabPoint3D getOContour(int n=-1) const
virtual double surface() const
TYRectangle & operator=(const TYRectangle &other)
Operateur =.
void getSize(float &sizeX, float &sizeY)