OpenLexocad
28.0
|
Document holding all persistent DocObjects. More...
#include <Document.h>
Public Member Functions | |
Attributes | |
Base::String | getName () const |
void | setCompany (const Base::String &company) |
void | setComment (const Base::String &comment) |
void | setCreatedBy (const Base::String &createdBy) |
Editing | |
void | beginEditing () |
void | endEditing () |
bool | isEditing () const |
void | addObject (std::shared_ptr< DocObject > aObject) |
void | removeObject (std::shared_ptr< DocObject > aObject) |
void | deleteObject (std::shared_ptr< DocObject > aObject) |
void | deleteObjects (const std::vector< std::shared_ptr< DocObject >> &aObjects) |
void | copyObjectsFrom (std::shared_ptr< Document > other) |
void | recompute () |
Observer | |
void | attachDocumentObserver (std::shared_ptr< DocumentObserver > aObserver) |
void | detachDocumentObserver (std::shared_ptr< DocumentObserver > aObserver) |
bool | saveAs (const Base::String &filename) |
bool | saveAs (const Base::String &format, const Base::String &filename) |
bool | saveAs2dl (const Base::String &filename, const std::vector< std::shared_ptr< Element >> &elements, const Geom::Ax2 &axis, bool exportFacesAsLines, bool forLexo2d) |
bool | saveForWeb (const Base::String &fileOrDirName, bool aSingleHtmlFile=false) |
bool | createAutomaticWedgeMesh (const Base::String &xlsFileName=Base::String(), const Base::String &fileName2dl=Base::String()) |
Zeropoint - Origin | |
Geom::XYZ | getZeropointXYZ () |
void | setZeropointXYZ (const Geom::XYZ &xyz) |
Geom::Pnt | getZeropointLok () |
void | setZeropointLok (const Geom::Pnt &pnt) |
double | getZeropointAngle () |
void | setZeropointAngle (double value) |
Base::String | getTmpDirectory () const |
std::shared_ptr< Element > | addVariant (const Base::String &aFileValName, const Geom::Ax2 &position) |
std::shared_ptr< Element > | import2dvFile (const Base::String &aFile2dvName, const Geom::Ax2 &position) |
Layer | |
std::vector< int > | getLayerNumbers () const |
int | addLayer (const Base::String &layerName, bool isVisible=true, bool isFrozen=false) |
bool | getLayerName (int layerNumber, Base::String &layerName) const |
bool | setLayerName (int layerNumber, const Base::String &layerName) |
bool | setLayerVisible (int layerNumber, bool isVisible) |
bool | getLayerVisible (int layerNumber, bool &isVisible) const |
bool | setLayerFrozen (int layerNumber, bool isFrozen) |
bool | getLayerFrozen (int layerNumber, bool &isFrozen) const |
Finding DocObjects | |
std::shared_ptr< Element > | getElementByGlobalId (const Base::GlobalId &aGlobalId) |
std::vector< std::shared_ptr< Element > > | getElements () |
std::vector< std::shared_ptr< Element > > | getElements (std::function< bool(std::shared_ptr< Element > aElement)> aFilter) |
std::shared_ptr< Root > | getRootByGlobalId (const Base::GlobalId &aGlobalId) |
std::vector< std::shared_ptr< Root > > | getRoots () |
std::vector< std::shared_ptr< Root > > | getRoots (std::function< bool(std::shared_ptr< Root > aRoot)> aFilter) |
std::vector< std::shared_ptr< DocObject > > | getObjects () |
std::vector< std::shared_ptr< DocObject > > | getObjects (std::function< bool(std::shared_ptr< DocObject > aObject)> aFilter) |
std::vector< std::shared_ptr< Element > > | getElementsByBimNumber (const Base::String &componentName, bool useRegularExpression=false) |
std::vector< std::shared_ptr< Element > > | getElementsByBimColor (const int &cadworkColor) |
std::vector< std::shared_ptr< SpatialElement > > | getSpatialElements () |
std::vector< std::shared_ptr< Site > > | getSites () |
std::vector< std::shared_ptr< Building > > | getBuildings () |
std::vector< std::shared_ptr< BuildingStorey > > | getBuildingStoreys () |
std::vector< std::shared_ptr< Space > > | getSpaces () |
std::shared_ptr< Element > | getActiveElement () |
std::shared_ptr< Site > | getActiveSite () |
std::shared_ptr< Building > | getActiveBuilding () |
std::shared_ptr< BuildingStorey > | getActiveBuildingStorey () |
Styles | |
Draw::PointStyle | getActivePointStyle () const |
Draw::CurveStyle | getActiveCurveStyle () const |
Draw::SurfaceStyle | getActiveSurfaceStyle () const |
Draw::TextStyle | getActiveTextStyle () const |
Draw::DimensionStyle | getActiveDimensionStyle () const |
Draw::CurveStyle | getActiveAuxiliaryCurveStyle () const |
Draw::SolidStyle | getActiveSpineStyle () const |
Draw::ExtrusionStyle | getActiveExtrusionStyle () const |
void | setActivePointStyle (const Draw::PointStyle &ps) |
void | setActiveCurveStyle (const Draw::CurveStyle &cs) |
void | setActiveSurfaceStyle (const Draw::SurfaceStyle &ss) |
void | setActiveTextStyle (const Draw::TextStyle &ts) |
void | setActiveDimensionStyle (const Draw::DimensionStyle &ds) |
void | setActiveAuxiliaryCurveStyle (const Draw::CurveStyle &cs) |
void | setActiveSpineStyle (const Draw::SolidStyle &ss) |
void | setActiveExtrusionStyle (const Draw::ExtrusionStyle &ss) |
Tasks | |
std::set< std::shared_ptr< Task > > | getTasks (std::shared_ptr< Element > aElement) |
void | setTasks (std::shared_ptr< Element > aElement, std::set< std::shared_ptr< Task >> aTasks) const |
WCS - WorldCoordinateSystem | |
void | set_WCS (const Geom::Ax2 &axis) |
void | reset_WCS () |
double | getRotationZ_WCS () const |
Geom::Pnt | getLocation_WCS () const |
Geom::Dir | getGlobalX_WCS () const |
Geom::Dir | getGlobalY_WCS () const |
Geom::Dir | getGlobalZ_WCS () const |
Friends | |
class | Application |
class | ApplicationP |
Commands | |
bool | runCommand (const std::string &cmdName) |
bool | runCommand (Core::Command *cmd) |
static std::vector< std::string > | getCommandNames () |
Python | |
bool | operator== (const Document &x, const Document &y) |
bool | operator!= (const Document &x, const Document &y) |
bool | operator< (const Document &x, const Document &y) |
bool | operator> (const Document &x, const Document &y) |
bool | operator<= (const Document &x, const Document &y) |
bool | operator>= (const Document &x, const Document &y) |
static std::set< std::string > | commandSet |
bool | registerPythonScript (const Base::GlobalId &aScriptId, const Base::String &aScriptFilePath=L"") |
Document (const Base::String &name, const Base::String &typeName=L"") | |
Document (App::Document *appDoc, const Base::String &name) | |
Document (const Document &other) | |
Document & | operator= (const Document &other) |
bool | isEqual (std::shared_ptr< Document > other) const |
Document (App::Document *aDoc) | |
~Document (void) | |
std::shared_ptr< DocObjectFactory > | create () |
Document ()=default | |
Document holding all persistent DocObjects.
OpenLxApp::Document::Document | ( | const Base::String & | name, |
const Base::String & | typeName = L"" |
||
) |
OpenLxApp::Document::Document | ( | App::Document * | appDoc, |
const Base::String & | name | ||
) |
|
inlineexplicit |
OpenLxApp::Document::Document | ( | App::Document * | aDoc | ) |
OpenLxApp::Document::~Document | ( | void | ) |
|
default |
int OpenLxApp::Document::addLayer | ( | const Base::String & | layerName, |
bool | isVisible = true , |
||
bool | isFrozen = false |
||
) |
void OpenLxApp::Document::addObject | ( | std::shared_ptr< DocObject > | aObject | ) |
std::shared_ptr<Element> OpenLxApp::Document::addVariant | ( | const Base::String & | aFileValName, |
const Geom::Ax2 & | position | ||
) |
void OpenLxApp::Document::attachDocumentObserver | ( | std::shared_ptr< DocumentObserver > | aObserver | ) |
void OpenLxApp::Document::beginEditing | ( | ) |
void OpenLxApp::Document::copyObjectsFrom | ( | std::shared_ptr< Document > | other | ) |
std::shared_ptr<DocObjectFactory> OpenLxApp::Document::create | ( | ) |
bool OpenLxApp::Document::createAutomaticWedgeMesh | ( | const Base::String & | xlsFileName = Base::String() , |
const Base::String & | fileName2dl = Base::String() |
||
) |
void OpenLxApp::Document::deleteObject | ( | std::shared_ptr< DocObject > | aObject | ) |
void OpenLxApp::Document::deleteObjects | ( | const std::vector< std::shared_ptr< DocObject >> & | aObjects | ) |
void OpenLxApp::Document::detachDocumentObserver | ( | std::shared_ptr< DocumentObserver > | aObserver | ) |
void OpenLxApp::Document::endEditing | ( | ) |
Draw::CurveStyle OpenLxApp::Document::getActiveAuxiliaryCurveStyle | ( | ) | const |
std::shared_ptr<Building> OpenLxApp::Document::getActiveBuilding | ( | ) |
std::shared_ptr<BuildingStorey> OpenLxApp::Document::getActiveBuildingStorey | ( | ) |
Draw::CurveStyle OpenLxApp::Document::getActiveCurveStyle | ( | ) | const |
Draw::DimensionStyle OpenLxApp::Document::getActiveDimensionStyle | ( | ) | const |
std::shared_ptr<Element> OpenLxApp::Document::getActiveElement | ( | ) |
Draw::ExtrusionStyle OpenLxApp::Document::getActiveExtrusionStyle | ( | ) | const |
Draw::PointStyle OpenLxApp::Document::getActivePointStyle | ( | ) | const |
std::shared_ptr<Site> OpenLxApp::Document::getActiveSite | ( | ) |
Draw::SolidStyle OpenLxApp::Document::getActiveSpineStyle | ( | ) | const |
Draw::SurfaceStyle OpenLxApp::Document::getActiveSurfaceStyle | ( | ) | const |
Draw::TextStyle OpenLxApp::Document::getActiveTextStyle | ( | ) | const |
std::vector<std::shared_ptr<Building> > OpenLxApp::Document::getBuildings | ( | ) |
std::vector<std::shared_ptr<BuildingStorey> > OpenLxApp::Document::getBuildingStoreys | ( | ) |
|
static |
std::shared_ptr<Element> OpenLxApp::Document::getElementByGlobalId | ( | const Base::GlobalId & | aGlobalId | ) |
std::vector<std::shared_ptr<Element> > OpenLxApp::Document::getElements | ( | ) |
std::vector<std::shared_ptr<Element> > OpenLxApp::Document::getElements | ( | std::function< bool(std::shared_ptr< Element > aElement)> | aFilter | ) |
std::vector<std::shared_ptr<Element> > OpenLxApp::Document::getElementsByBimColor | ( | const int & | cadworkColor | ) |
std::vector<std::shared_ptr<Element> > OpenLxApp::Document::getElementsByBimNumber | ( | const Base::String & | componentName, |
bool | useRegularExpression = false |
||
) |
Geom::Dir OpenLxApp::Document::getGlobalX_WCS | ( | ) | const |
Geom::Dir OpenLxApp::Document::getGlobalY_WCS | ( | ) | const |
Geom::Dir OpenLxApp::Document::getGlobalZ_WCS | ( | ) | const |
bool OpenLxApp::Document::getLayerFrozen | ( | int | layerNumber, |
bool & | isFrozen | ||
) | const |
bool OpenLxApp::Document::getLayerName | ( | int | layerNumber, |
Base::String & | layerName | ||
) | const |
std::vector<int> OpenLxApp::Document::getLayerNumbers | ( | ) | const |
bool OpenLxApp::Document::getLayerVisible | ( | int | layerNumber, |
bool & | isVisible | ||
) | const |
Geom::Pnt OpenLxApp::Document::getLocation_WCS | ( | ) | const |
Base::String OpenLxApp::Document::getName | ( | ) | const |
std::vector<std::shared_ptr<DocObject> > OpenLxApp::Document::getObjects | ( | ) |
std::vector<std::shared_ptr<DocObject> > OpenLxApp::Document::getObjects | ( | std::function< bool(std::shared_ptr< DocObject > aObject)> | aFilter | ) |
std::shared_ptr<Root> OpenLxApp::Document::getRootByGlobalId | ( | const Base::GlobalId & | aGlobalId | ) |
std::vector<std::shared_ptr<Root> > OpenLxApp::Document::getRoots | ( | ) |
std::vector<std::shared_ptr<Root> > OpenLxApp::Document::getRoots | ( | std::function< bool(std::shared_ptr< Root > aRoot)> | aFilter | ) |
double OpenLxApp::Document::getRotationZ_WCS | ( | ) | const |
std::vector<std::shared_ptr<Site> > OpenLxApp::Document::getSites | ( | ) |
std::vector<std::shared_ptr<Space> > OpenLxApp::Document::getSpaces | ( | ) |
std::vector<std::shared_ptr<SpatialElement> > OpenLxApp::Document::getSpatialElements | ( | ) |
std::set<std::shared_ptr<Task> > OpenLxApp::Document::getTasks | ( | std::shared_ptr< Element > | aElement | ) |
Base::String OpenLxApp::Document::getTmpDirectory | ( | ) | const |
double OpenLxApp::Document::getZeropointAngle | ( | ) |
Geom::Pnt OpenLxApp::Document::getZeropointLok | ( | ) |
Geom::XYZ OpenLxApp::Document::getZeropointXYZ | ( | ) |
std::shared_ptr<Element> OpenLxApp::Document::import2dvFile | ( | const Base::String & | aFile2dvName, |
const Geom::Ax2 & | position | ||
) |
bool OpenLxApp::Document::isEditing | ( | ) | const |
|
inline |
void OpenLxApp::Document::recompute | ( | ) |
bool OpenLxApp::Document::registerPythonScript | ( | const Base::GlobalId & | aScriptId, |
const Base::String & | aScriptFilePath = L"" |
||
) |
void OpenLxApp::Document::removeObject | ( | std::shared_ptr< DocObject > | aObject | ) |
void OpenLxApp::Document::reset_WCS | ( | ) |
bool OpenLxApp::Document::runCommand | ( | const std::string & | cmdName | ) |
bool OpenLxApp::Document::runCommand | ( | Core::Command * | cmd | ) |
bool OpenLxApp::Document::saveAs | ( | const Base::String & | filename | ) |
bool OpenLxApp::Document::saveAs | ( | const Base::String & | format, |
const Base::String & | filename | ||
) |
bool OpenLxApp::Document::saveAs2dl | ( | const Base::String & | filename, |
const std::vector< std::shared_ptr< Element >> & | elements, | ||
const Geom::Ax2 & | axis, | ||
bool | exportFacesAsLines, | ||
bool | forLexo2d | ||
) |
bool OpenLxApp::Document::saveForWeb | ( | const Base::String & | fileOrDirName, |
bool | aSingleHtmlFile = false |
||
) |
void OpenLxApp::Document::set_WCS | ( | const Geom::Ax2 & | axis | ) |
void OpenLxApp::Document::setActiveAuxiliaryCurveStyle | ( | const Draw::CurveStyle & | cs | ) |
void OpenLxApp::Document::setActiveCurveStyle | ( | const Draw::CurveStyle & | cs | ) |
void OpenLxApp::Document::setActiveDimensionStyle | ( | const Draw::DimensionStyle & | ds | ) |
void OpenLxApp::Document::setActiveExtrusionStyle | ( | const Draw::ExtrusionStyle & | ss | ) |
void OpenLxApp::Document::setActivePointStyle | ( | const Draw::PointStyle & | ps | ) |
void OpenLxApp::Document::setActiveSpineStyle | ( | const Draw::SolidStyle & | ss | ) |
void OpenLxApp::Document::setActiveSurfaceStyle | ( | const Draw::SurfaceStyle & | ss | ) |
void OpenLxApp::Document::setActiveTextStyle | ( | const Draw::TextStyle & | ts | ) |
void OpenLxApp::Document::setComment | ( | const Base::String & | comment | ) |
void OpenLxApp::Document::setCompany | ( | const Base::String & | company | ) |
void OpenLxApp::Document::setCreatedBy | ( | const Base::String & | createdBy | ) |
bool OpenLxApp::Document::setLayerFrozen | ( | int | layerNumber, |
bool | isFrozen | ||
) |
bool OpenLxApp::Document::setLayerName | ( | int | layerNumber, |
const Base::String & | layerName | ||
) |
bool OpenLxApp::Document::setLayerVisible | ( | int | layerNumber, |
bool | isVisible | ||
) |
void OpenLxApp::Document::setTasks | ( | std::shared_ptr< Element > | aElement, |
std::set< std::shared_ptr< Task >> | aTasks | ||
) | const |
void OpenLxApp::Document::setZeropointAngle | ( | double | value | ) |
void OpenLxApp::Document::setZeropointLok | ( | const Geom::Pnt & | pnt | ) |
void OpenLxApp::Document::setZeropointXYZ | ( | const Geom::XYZ & | xyz | ) |
|
friend |
|
friend |
|
static |