OpenLexocad  27.0
OpenLxApp::ElementTool Class Reference

#include <ElementTool.h>

Public Types

enum  ErrorCode {
  NoError = 0, UnknownError = 1, InvalidArguments = 2, ResultingGeometryIsInvalid = 3,
  InsufficientArraySize = 4
}
 

Static Public Member Functions

static ErrorCode cut (std::shared_ptr< Element > softElem, std::shared_ptr< Element > hardElem, std::vector< std::shared_ptr< Element >> &result)
 
static ErrorCode cut (std::shared_ptr< Element > softElem, const std::vector< std::shared_ptr< Element >> &hardElems, std::vector< std::shared_ptr< Element >> &result)
 
static ErrorCode cut (std::shared_ptr< Element > softElem, std::shared_ptr< Element > *hardElems, int hardElemsSize, std::shared_ptr< Element > *result, int resultSize, int &nbElementsInResult)
 
static ErrorCode common (std::shared_ptr< Element > firstElem, std::shared_ptr< Element > secondElem, std::vector< std::shared_ptr< Element >> &result)
 
static ErrorCode cutWithPlane (std::shared_ptr< Element > elem, const Base::Pln &plane, std::vector< std::shared_ptr< Element >> &result)
 
static ErrorCode splitByPlane (std::shared_ptr< Element > elem, const Base::Pln &plane, std::vector< std::shared_ptr< Element >> &result)
 
static ErrorCode sectionWithPlane (std::shared_ptr< Element > elem, const Base::Pln &plane, std::vector< std::shared_ptr< Element >> &result)
 
static ErrorCode section (std::shared_ptr< Element > firstElem, std::shared_ptr< Element > secondElem, std::vector< std::shared_ptr< Element >> &result)
 
static ErrorCode fuse (const std::vector< std::shared_ptr< Element >> &elems, std::shared_ptr< Element > &result)
 
static void startTimer ()
 
static int stopTimer ()
 
static int elapsedTime ()
 
static ErrorCode projectOrthoPhoto (const std::vector< std::shared_ptr< Element >> &elems, const Base::String &imgPath, const Base::String &jpgdFilePath, const Base::String &lokFilePath)
 
static ErrorCode projectOrthoPhoto (const std::vector< std::shared_ptr< Element >> &elems, const Base::String &imgPath, double minX, double minY, double maxX, double maxY)
 
static ErrorCode projectImage (const std::vector< std::shared_ptr< Element >> &elems, const Base::String &imgPath)
 

Member Enumeration Documentation

◆ ErrorCode

Enumerator
NoError 
UnknownError 
InvalidArguments 
ResultingGeometryIsInvalid 
InsufficientArraySize 

Member Function Documentation

◆ common()

static ErrorCode OpenLxApp::ElementTool::common ( std::shared_ptr< Element firstElem,
std::shared_ptr< Element secondElem,
std::vector< std::shared_ptr< Element >> &  result 
)
static

◆ cut() [1/3]

static ErrorCode OpenLxApp::ElementTool::cut ( std::shared_ptr< Element softElem,
std::shared_ptr< Element hardElem,
std::vector< std::shared_ptr< Element >> &  result 
)
static

◆ cut() [2/3]

static ErrorCode OpenLxApp::ElementTool::cut ( std::shared_ptr< Element softElem,
const std::vector< std::shared_ptr< Element >> &  hardElems,
std::vector< std::shared_ptr< Element >> &  result 
)
static

◆ cut() [3/3]

static ErrorCode OpenLxApp::ElementTool::cut ( std::shared_ptr< Element softElem,
std::shared_ptr< Element > *  hardElems,
int  hardElemsSize,
std::shared_ptr< Element > *  result,
int  resultSize,
int &  nbElementsInResult 
)
static

◆ cutWithPlane()

static ErrorCode OpenLxApp::ElementTool::cutWithPlane ( std::shared_ptr< Element elem,
const Base::Pln &  plane,
std::vector< std::shared_ptr< Element >> &  result 
)
static

◆ elapsedTime()

static int OpenLxApp::ElementTool::elapsedTime ( )
static

◆ fuse()

static ErrorCode OpenLxApp::ElementTool::fuse ( const std::vector< std::shared_ptr< Element >> &  elems,
std::shared_ptr< Element > &  result 
)
static

◆ projectImage()

static ErrorCode OpenLxApp::ElementTool::projectImage ( const std::vector< std::shared_ptr< Element >> &  elems,
const Base::String imgPath 
)
static

◆ projectOrthoPhoto() [1/2]

static ErrorCode OpenLxApp::ElementTool::projectOrthoPhoto ( const std::vector< std::shared_ptr< Element >> &  elems,
const Base::String imgPath,
const Base::String jpgdFilePath,
const Base::String lokFilePath 
)
static

◆ projectOrthoPhoto() [2/2]

static ErrorCode OpenLxApp::ElementTool::projectOrthoPhoto ( const std::vector< std::shared_ptr< Element >> &  elems,
const Base::String imgPath,
double  minX,
double  minY,
double  maxX,
double  maxY 
)
static

◆ section()

static ErrorCode OpenLxApp::ElementTool::section ( std::shared_ptr< Element firstElem,
std::shared_ptr< Element secondElem,
std::vector< std::shared_ptr< Element >> &  result 
)
static

◆ sectionWithPlane()

static ErrorCode OpenLxApp::ElementTool::sectionWithPlane ( std::shared_ptr< Element elem,
const Base::Pln &  plane,
std::vector< std::shared_ptr< Element >> &  result 
)
static

◆ splitByPlane()

static ErrorCode OpenLxApp::ElementTool::splitByPlane ( std::shared_ptr< Element elem,
const Base::Pln &  plane,
std::vector< std::shared_ptr< Element >> &  result 
)
static

◆ startTimer()

static void OpenLxApp::ElementTool::startTimer ( )
static

◆ stopTimer()

static int OpenLxApp::ElementTool::stopTimer ( )
static

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