27 std::pair<PdmsTools::PdmsObjects::GenericItem*, ccHObject*>;
32 QStringList{
"pdms",
"pdmsmac",
"mac"},
"pdms",
33 QStringList{
"PDMS primitives (*.pdms *.pdmsmac *.mac)"},
50 std::vector<PdmsAndCCPair> treeSync;
53 while (!treeSync.empty()) {
57 if (currentPair.first->isGroupElement()) {
64 for (std::list<PdmsTools::PdmsObjects::DesignElement*>::
65 const_iterator it = group->
elements.begin();
73 for (std::list<PdmsTools::PdmsObjects::GroupElement*>::
78 currentPair.second->addChild(subGroup);
85 ccMesh* primitive =
nullptr;
86 QString unsupportedPrimitiveStr(
"unknown");
87 switch (currentPair.first->getType()) {
103 false, 0, 0, pdmsCTor->
name);
112 false, pdmsRTor->
height, 0,
132 unsupportedPrimitiveStr =
"Pyramid";
141 pdmsSnout->
yoff, 0, pdmsSnout->
name);
151 unsupportedPrimitiveStr =
"NBox";
159 std::vector<CCVector2>
profile;
161 for (std::list<PdmsTools::PdmsObjects::Vertex*>::
164 it != pdmsExtru->
loop->
loop.end(); ++it)
172 unsupportedPrimitiveStr =
"NExtru";
175 unsupportedPrimitiveStr =
"Loop";
178 unsupportedPrimitiveStr =
"Vertex";
188 assert(currentPair.first->isCoordinateSystemUpToDate);
190 for (
unsigned c = 0; c < 3; ++c)
191 for (
unsigned l = 0; l < 3; ++l)
192 trans.
getColumn(c)[l] =
static_cast<float>(
193 currentPair.first->orientation[c].u[l]);
197 currentPair.second->addChild(primitive);
201 .arg(unsupportedPrimitiveStr));
CC_FILE_ERROR
Typical I/O filter errors.
CloudViewerScene::LightingProfile profile
std::pair< PdmsTools::PdmsObjects::GenericItem *, ccHObject * > PdmsAndCCPair
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
static constexpr float DEFAULT_PRIORITY
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters ¶meters) override
Loads one or more entities from a file.
bool parseSessionContent()
void linkWithSession(PdmsLexer *s)
PdmsObjects::GenericItem * getLoadedObject(bool forgetIt=true)
virtual void setVisible(bool state)
Sets entity visibility.
virtual void setGLTransformation(const ccGLMatrix &trans)
Associates entity with a GL transformation (rotation + translation)
Profile extrusion (primitive)
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
T * getColumn(unsigned index)
Returns a pointer to a given column.
Float version of ccGLMatrixTpl.
Hierarchical CLOUDVIEWER Object.
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Generic file read and write utility for python interface.
Generic loading parameters.