KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DATA Struct Reference

Public Member Functions

 Handle (XCAFApp_Application) m_app
 
 Handle (TDocStd_Document) m_doc
 
 Handle (XCAFDoc_ColorTool) m_color
 
 Handle (XCAFDoc_ShapeTool) m_assy
 
bool IsCanceled ()
 
 DATA ()
 
 ~DATA ()
 
bool GetShape (const std::string &id, std::vector< SGNODE * > *&listPtr)
 
SGNODE * GetFace (const std::string &id)
 
SGNODE * GetColor (Quantity_ColorRGBA *colorObj)
 

Public Attributes

SGNODE * scene
 
IFSG_APPEARANCE defaultColor { false }
 Wrapper so the node clears it if a shape that took ownership is destroyed first.
 
NODEMAP shapes
 
COLORMAP colors
 
FACEMAP faces
 
bool renderBoth
 
bool hasSolid
 
S3D::MODEL_IMPORT_OPTIONS options
 
MODEL_IMPORT_STATUS * status = nullptr
 

Detailed Description

Definition at line 112 of file loadmodel.cpp.

Constructor & Destructor Documentation

◆ DATA()

DATA::DATA ( )
inline

Definition at line 144 of file loadmodel.cpp.

References hasSolid, renderBoth, and scene.

◆ ~DATA()

DATA::~DATA ( )
inline

Definition at line 151 of file loadmodel.cpp.

References colors, defaultColor, S3D::DestroyNode(), faces, S3D::GetSGNodeParent(), scene, and shapes.

Member Function Documentation

◆ GetColor()

◆ GetFace()

SGNODE * DATA::GetFace ( const std::string & id)
inline

Definition at line 243 of file loadmodel.cpp.

References faces.

Referenced by processFace().

◆ GetShape()

bool DATA::GetShape ( const std::string & id,
std::vector< SGNODE * > *& listPtr )
inline

Definition at line 229 of file loadmodel.cpp.

References shapes.

Referenced by processLabel(), and processSolidOrShell().

◆ Handle() [1/4]

DATA::Handle ( TDocStd_Document )

◆ Handle() [2/4]

DATA::Handle ( XCAFApp_Application )

◆ Handle() [3/4]

DATA::Handle ( XCAFDoc_ColorTool )

◆ Handle() [4/4]

DATA::Handle ( XCAFDoc_ShapeTool )

◆ IsCanceled()

bool DATA::IsCanceled ( )
inline

Definition at line 131 of file loadmodel.cpp.

References S3D::CANCELED, options, and status.

Referenced by LoadModel(), processFace(), processLabel(), and processShell().

Member Data Documentation

◆ colors

COLORMAP DATA::colors

Definition at line 124 of file loadmodel.cpp.

Referenced by GetColor(), and ~DATA().

◆ defaultColor

IFSG_APPEARANCE DATA::defaultColor { false }

Wrapper so the node clears it if a shape that took ownership is destroyed first.

Definition at line 121 of file loadmodel.cpp.

Referenced by GetColor(), and ~DATA().

◆ faces

FACEMAP DATA::faces

Definition at line 125 of file loadmodel.cpp.

Referenced by GetFace(), processFace(), and ~DATA().

◆ hasSolid

bool DATA::hasSolid

Definition at line 127 of file loadmodel.cpp.

Referenced by DATA(), processFace(), processLabel(), and processSolidOrShell().

◆ options

Definition at line 128 of file loadmodel.cpp.

Referenced by IsCanceled(), LoadModel(), and processFace().

◆ renderBoth

bool DATA::renderBoth

Definition at line 126 of file loadmodel.cpp.

Referenced by DATA(), LoadModel(), and processFace().

◆ scene

SGNODE* DATA::scene

Definition at line 118 of file loadmodel.cpp.

Referenced by DATA(), LoadModel(), and ~DATA().

◆ shapes

NODEMAP DATA::shapes

Definition at line 123 of file loadmodel.cpp.

Referenced by GetShape(), and ~DATA().

◆ status

MODEL_IMPORT_STATUS* DATA::status = nullptr

Definition at line 129 of file loadmodel.cpp.

Referenced by IsCanceled(), and LoadModel().


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