Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CGeoBlock Class Reference

#include <CGeoBlock.hpp>

Classes

struct  SPrvEntityGeoBlock
 

Public Member Functions

 CGeoBlock (std::string nameBlock="")
 
 CGeoBlock (const CGeoBlock &geoBlock)
 
virtual ~CGeoBlock ()
 
bool operator== (const CGeoBlock &b) const
 
void addClosingPointShape3D (std::vector< std::vector< iv::math::geometry::Point3d > > *frames) const
 
void addHatch (std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > *contours)
 
void addPolyline (std::shared_ptr< std::vector< iv::math::geometry::Point3d > > polyline)
 
void addPolylineAsHatch (const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > &polyline)
 
void applyMatrixTransformation (const CMatrix4x4 &matrixTransformation) const
 
void drawContours (IGraphics *graphics) const
 
void drawFilled (IGraphics *graphics) const
 
void drawFilledPercentage (double percentage, IGraphics *graphics) const
 
bool getLimits (double *xMinOpt, double *yMinOpt, double *zMinOpt, double *xMaxOpt, double *yMaxOpt, double *zMaxOpt) const
 
std::string getNameBlock () const
 
std::vector< std::vector< iv::math::geometry::Point2d > > getPolylines2D () const
 
bool isGeoBlock (const std::string &nameBlock) const
 
bool isPointInside (double x, double y) const
 

Private Types

enum class  EEntityGeoBlockType { PRV_POLYLINE , PRV_HATCH }
 

Private Member Functions

void prvDrawPolylines (IGraphics *graphics) const
 

Static Private Member Functions

static void prvCalculateLimitEntity (const SPrvEntityGeoBlock *entity, double &xMinEntity, double &yMinEntity, double &zMinEntity, double &xMaxEntity, double &yMaxEntity, double &zMaxEntity)
 

Private Attributes

std::string m_nameBlock
 
std::vector< SPrvEntityGeoBlock * > m_entities
 

Member Enumeration Documentation

◆ EEntityGeoBlockType

enum class CGeoBlock::EEntityGeoBlockType
strongprivate
Enumerator
PRV_POLYLINE 
PRV_HATCH 

Constructor & Destructor Documentation

◆ CGeoBlock() [1/2]

CGeoBlock::CGeoBlock ( std::string nameBlock = "")
explicit

◆ CGeoBlock() [2/2]

CGeoBlock::CGeoBlock ( const CGeoBlock & geoBlock)

◆ ~CGeoBlock()

CGeoBlock::~CGeoBlock ( )
virtualdefault

Member Function Documentation

◆ addClosingPointShape3D()

void CGeoBlock::addClosingPointShape3D ( std::vector< std::vector< iv::math::geometry::Point3d > > * frames) const

◆ addHatch()

void CGeoBlock::addHatch ( std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * contours)

◆ addPolyline()

void CGeoBlock::addPolyline ( std::shared_ptr< std::vector< iv::math::geometry::Point3d > > polyline)

◆ addPolylineAsHatch()

void CGeoBlock::addPolylineAsHatch ( const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > & polyline)

◆ applyMatrixTransformation()

void CGeoBlock::applyMatrixTransformation ( const CMatrix4x4 & matrixTransformation) const

◆ drawContours()

void CGeoBlock::drawContours ( IGraphics * graphics) const

◆ drawFilled()

void CGeoBlock::drawFilled ( IGraphics * graphics) const

◆ drawFilledPercentage()

void CGeoBlock::drawFilledPercentage ( double percentage,
IGraphics * graphics ) const

◆ getLimits()

bool CGeoBlock::getLimits ( double * xMinOpt,
double * yMinOpt,
double * zMinOpt,
double * xMaxOpt,
double * yMaxOpt,
double * zMaxOpt ) const

◆ getNameBlock()

std::string CGeoBlock::getNameBlock ( ) const
nodiscard

◆ getPolylines2D()

std::vector< std::vector< iv::math::geometry::Point2d > > CGeoBlock::getPolylines2D ( ) const
nodiscard

◆ isGeoBlock()

bool CGeoBlock::isGeoBlock ( const std::string & nameBlock) const
nodiscard

◆ isPointInside()

bool CGeoBlock::isPointInside ( double x,
double y ) const
nodiscard

◆ operator==()

bool CGeoBlock::operator== ( const CGeoBlock & b) const

◆ prvCalculateLimitEntity()

void CGeoBlock::prvCalculateLimitEntity ( const SPrvEntityGeoBlock * entity,
double & xMinEntity,
double & yMinEntity,
double & zMinEntity,
double & xMaxEntity,
double & yMaxEntity,
double & zMaxEntity )
staticprivate

◆ prvDrawPolylines()

void CGeoBlock::prvDrawPolylines ( IGraphics * graphics) const
private

Member Data Documentation

◆ m_entities

std::vector<SPrvEntityGeoBlock *> CGeoBlock::m_entities
private

◆ m_nameBlock

std::string CGeoBlock::m_nameBlock
private

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