23 #ifndef __TY_BOUNDARY_NOISE_MAP__
24 #define __TY_BOUNDARY_NOISE_MAP__
86 virtual bool deepCopy(
const TYElement* pOther,
bool copyId =
true,
bool pUseCopyTag =
false);
88 virtual std::string
toString()
const;
93 bool toXML(
const std::string& sFilePath);
95 bool fromXML(
const std::string& sFilePath);
114 virtual void make(
const TYTabPoint& tabPoints,
double thickness,
bool closed,
115 double density = TY_MAILLAGE_DEFAULT_DENSITE);
125 void computeBoundingBox(
double& box_x_min,
double& box_x_max,
double& box_y_min,
double& box_y_max)
const;
135 void computePoints(
double box_x_min,
double box_x_max,
double box_y_min,
double box_y_max);
std::vector< LPTYBoundaryNoiseMapGeoNode > TYTabBoundaryNoiseMapGeoNode
Vector of geometry nodes of TYBoundaryNoiseMap.
SmartPtr< TYBoundaryNoiseMapGeoNode > LPTYBoundaryNoiseMapGeoNode
Smart Pointer on TYBoundaryNoiseMapGeoNode.
TYGeometryNode TYBoundaryNoiseMapGeoNode
TYBoundaryNoiseMap geometry node.
SmartPtr< TYBoundaryNoiseMap > LPTYTYBoundaryNoiseMap
Smart Pointer on TYBoundaryNoiseMap.
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
#define OPROTODECL(classname)
#define TY_EXTENSION_DECL_ONLY(classname)
This class represents a polyline with a thickness. Acoustic receptors are sampled inside this region.
virtual DOM_Element toXML(DOM_Element &domElement)
std::vector< int > _ptsIndices
Array of points indices : -1 means the point doesn't exist.
void computePoints(double box_x_min, double box_x_max, double box_y_min, double box_y_max)
Compute the calcul points.
bool fromXMLString(const std::string &sXMLString)
bool isClosed() const
Is polyline closed?
std::vector< int > & getPtsIndices()
Return the indices of calcul points.
virtual void clearResult()
Clear result.
TYTabPoint _tabPoint
The tab point defining the polyline.
const TYTabPoint & getTabPoint() const
Return the points defining the polyline.
bool _canBeClosed
If the polyline can be closed.
bool operator!=(const TYBoundaryNoiseMap &other) const
Operator !=.
static double computeMinimumDensity(double thickness)
Return the minimum density to get a correct sampling.
double getThickness() const
Return the thickness of the polyline.
int _nbPointsY
Number of points in column y (rectangular bounding box).
double getDensity() const
Return the density of points.
virtual void make(const TYTabPoint &tabPoints, double thickness, bool closed, double density=TY_MAILLAGE_DEFAULT_DENSITE)
Build the table of TYPointCalcul around the polyline.
void computeBoundingBox(double &box_x_min, double &box_x_max, double &box_y_min, double &box_y_max) const
Compute the bounding box of the polyline.
double _density
Density of points (number of points per meter).
const std::vector< int > & getPtsIndices() const
Return the indices of calcul points.
bool getCanBeClosed() const
Getter of _canBeClosed.
virtual int getIndexPtCalcul(int x, int y) const
Return the index.
virtual std::string toString() const
int getNbPointsY() const
Return number of points in column, for the 2D array.
TYTabPoint & getTabPoint()
Return the points defining the polyline.
TYPoint _posLabel
The position of the label.
virtual int fromXML(DOM_Element domElement)
virtual void getDimensions(int &x, int &y) const
Return the dimensions in x and y.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
std::string toXMLString()
bool _closed
If the polyline is closed.
double _thickness
Thickness of the polyline (in meters).
bool operator==(const TYBoundaryNoiseMap &other) const
Operator ==.
const TYPoint & getPosLabel()
Return the position that will be used for the legend/label display.
virtual ~TYBoundaryNoiseMap()
Destructor. TYBoundaryNoiseMap destructor.
TYBoundaryNoiseMap & operator=(const TYBoundaryNoiseMap &other)
Operator =.
void setCanBeClosed(bool canBeClosed)
Setter of _canBeClosed.
TYBoundaryNoiseMap()
Constructor. TYBoundaryNoiseMap constructor.
Classe de definition d'un maillage.