#include <SMESHDS_Script.hxx>
Public Member Functions | |
SMESHDS_Script (bool theIsEmbeddedMode) | |
~SMESHDS_Script () | |
void | SetModified (bool theModified) |
bool | IsModified () |
void | AddNode (int NewNodeID, double x, double y, double z) |
void | Add0DElement (int New0DElementID, int idnode) |
void | AddEdge (int NewEdgeID, int idnode1, int idnode2) |
void | AddFace (int NewFaceID, int idnode1, int idnode2, int idnode3) |
void | AddFace (int NewFaceID, int idnode1, int idnode2, int idnode3, int idnode4) |
void | AddVolume (int NewVolID, int idnode1, int idnode2, int idnode3, int idnode4) |
void | AddVolume (int NewVolID, int idnode1, int idnode2, int idnode3, int idnode4, int idnode5) |
void | AddVolume (int NewVolID, int idnode1, int idnode2, int idnode3, int idnode4, int idnode5, int idnode6) |
void | AddVolume (int NewVolID, int idnode1, int idnode2, int idnode3, int idnode4, int idnode5, int idnode6, int idnode7, int idnode8) |
void | AddVolume (int NewVolID, int idnode1, int idnode2, int idnode3, int idnode4, int idnode5, int idnode6, int idnode7, int idnode8, int idnode9, int idnode10, int idnode11, int idnode12) |
void | AddPolygonalFace (const int NewFaceID, const std::vector< int > &nodes_ids) |
void | AddQuadPolygonalFace (const int NewFaceID, const std::vector< int > &nodes_ids) |
void | AddPolyhedralVolume (const int NewVolID, const std::vector< int > &nodes_ids, const std::vector< int > &quantities) |
void | AddBall (int NewBallID, int node, double diameter) |
void | AddEdge (int NewEdgeID, int n1, int n2, int n12) |
void | AddFace (int NewFaceID, int n1, int n2, int n3, int n12, int n23, int n31) |
void | AddFace (int NewFaceID, int n1, int n2, int n3, int n12, int n23, int n31, int nCenter) |
void | AddFace (int NewFaceID, int n1, int n2, int n3, int n4, int n12, int n23, int n34, int n41) |
void | AddFace (int NewFaceID, int n1, int n2, int n3, int n4, int n12, int n23, int n34, int n41, int nCenter) |
void | AddVolume (int NewVolID, int n1, int n2, int n3, int n4, int n12, int n23, int n31, int n14, int n24, int n34) |
void | AddVolume (int NewVolID, int n1, int n2, int n3, int n4, int n5, int n12, int n23, int n34, int n41, int n15, int n25, int n35, int n45) |
void | AddVolume (int NewVolID, int n1, int n2, int n3, int n4, int n5, int n6, int n12, int n23, int n31, int n45, int n56, int n64, int n14, int n25, int n36) |
void | AddVolume (int NewVolID, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n12, int n23, int n34, int n41, int n56, int n67, int n78, int n85, int n15, int n26, int n37, int n48) |
void | AddVolume (int NewVolID, int n1, int n2, int n3, int n4, int n5, int n6, int n7, int n8, int n12, int n23, int n34, int n41, int n56, int n67, int n78, int n85, int n15, int n26, int n37, int n48, int n1234, int n1256, int n2367, int n3478, int n1458, int n5678, int nCenter) |
void | MoveNode (int NewNodeID, double x, double y, double z) |
void | RemoveNode (int NodeID) |
void | RemoveElement (int ElementID) |
void | ChangeElementNodes (int ElementID, int nodes[], int nbnodes) |
void | ChangePolyhedronNodes (const int ElementID, const std::vector< int > &nodes_ids, const std::vector< int > &quantities) |
void | Renumber (const bool isNodes, const int startID, const int deltaID) |
void | ClearMesh () |
void | Clear () |
const std::list < SMESHDS_Command * > & | GetCommands () |
Private Member Functions | |
SMESHDS_Command * | getCommand (const SMESHDS_CommandType aType) |
Private Attributes | |
std::list< SMESHDS_Command * > | myCommands |
bool | myIsEmbeddedMode |
bool | myIsModified |
SMESHDS_Script::SMESHDS_Script | ( | bool | theIsEmbeddedMode | ) |
SMESHDS_Script::~SMESHDS_Script | ( | ) |
References Clear().
References SMESHDS_Command::Add0DElement(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_Add0DElement.
Referenced by SMESHDS_Mesh::Add0DElement(), and SMESHDS_Mesh::Add0DElementWithID().
References SMESHDS_Command::AddBall(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddBall.
Referenced by SMESHDS_Mesh::AddBall(), and SMESHDS_Mesh::AddBallWithID().
References SMESHDS_Command::AddEdge(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddEdge.
Referenced by SMESHDS_Mesh::AddEdge(), and SMESHDS_Mesh::AddEdgeWithID().
References SMESHDS_Command::AddEdge(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadEdge.
References SMESHDS_Command::AddFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddTriangle.
Referenced by SMESHDS_Mesh::AddFace(), and SMESHDS_Mesh::AddFaceWithID().
References SMESHDS_Command::AddFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadrangle.
References SMESHDS_Command::AddFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadTriangle.
void SMESHDS_Script::AddFace | ( | int | NewFaceID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n12, | ||
int | n23, | ||
int | n31, | ||
int | nCenter | ||
) |
References SMESHDS_Command::AddFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddBiQuadTriangle.
void SMESHDS_Script::AddFace | ( | int | NewFaceID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4, | ||
int | n12, | ||
int | n23, | ||
int | n34, | ||
int | n41 | ||
) |
References SMESHDS_Command::AddFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadQuadrangle.
void SMESHDS_Script::AddFace | ( | int | NewFaceID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4, | ||
int | n12, | ||
int | n23, | ||
int | n34, | ||
int | n41, | ||
int | nCenter | ||
) |
References SMESHDS_Command::AddFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddBiQuadQuadrangle.
void SMESHDS_Script::AddNode | ( | int | NewNodeID, |
double | x, | ||
double | y, | ||
double | z | ||
) |
References SMESHDS_Command::AddNode(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddNode.
Referenced by SMESHDS_Mesh::AddNode(), and SMESHDS_Mesh::AddNodeWithID().
References SMESHDS_Command::AddPolygonalFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddPolygon.
Referenced by SMESHDS_Mesh::AddPolygonalFace(), and SMESHDS_Mesh::AddPolygonalFaceWithID().
void SMESHDS_Script::AddPolyhedralVolume | ( | const int | NewVolID, |
const std::vector< int > & | nodes_ids, | ||
const std::vector< int > & | quantities | ||
) |
References SMESHDS_Command::AddPolyhedralVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddPolyhedron.
Referenced by SMESHDS_Mesh::AddPolyhedralVolumeWithID().
void SMESHDS_Script::AddQuadPolygonalFace | ( | const int | NewFaceID, |
const std::vector< int > & | nodes_ids | ||
) |
References SMESHDS_Command::AddQuadPolygonalFace(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadPolygon.
Referenced by SMESHDS_Mesh::AddQuadPolygonalFace(), and SMESHDS_Mesh::AddQuadPolygonalFaceWithID().
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddTetrahedron.
Referenced by SMESHDS_Mesh::AddVolume(), and SMESHDS_Mesh::AddVolumeWithID().
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | idnode1, | ||
int | idnode2, | ||
int | idnode3, | ||
int | idnode4, | ||
int | idnode5 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddPyramid.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | idnode1, | ||
int | idnode2, | ||
int | idnode3, | ||
int | idnode4, | ||
int | idnode5, | ||
int | idnode6 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddPrism.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | idnode1, | ||
int | idnode2, | ||
int | idnode3, | ||
int | idnode4, | ||
int | idnode5, | ||
int | idnode6, | ||
int | idnode7, | ||
int | idnode8 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddHexahedron.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | idnode1, | ||
int | idnode2, | ||
int | idnode3, | ||
int | idnode4, | ||
int | idnode5, | ||
int | idnode6, | ||
int | idnode7, | ||
int | idnode8, | ||
int | idnode9, | ||
int | idnode10, | ||
int | idnode11, | ||
int | idnode12 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddHexagonalPrism.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4, | ||
int | n12, | ||
int | n23, | ||
int | n31, | ||
int | n14, | ||
int | n24, | ||
int | n34 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadTetrahedron.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4, | ||
int | n5, | ||
int | n12, | ||
int | n23, | ||
int | n34, | ||
int | n41, | ||
int | n15, | ||
int | n25, | ||
int | n35, | ||
int | n45 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadPyramid.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4, | ||
int | n5, | ||
int | n6, | ||
int | n12, | ||
int | n23, | ||
int | n31, | ||
int | n45, | ||
int | n56, | ||
int | n64, | ||
int | n14, | ||
int | n25, | ||
int | n36 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadPentahedron.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4, | ||
int | n5, | ||
int | n6, | ||
int | n7, | ||
int | n8, | ||
int | n12, | ||
int | n23, | ||
int | n34, | ||
int | n41, | ||
int | n56, | ||
int | n67, | ||
int | n78, | ||
int | n85, | ||
int | n15, | ||
int | n26, | ||
int | n37, | ||
int | n48 | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddQuadHexahedron.
void SMESHDS_Script::AddVolume | ( | int | NewVolID, |
int | n1, | ||
int | n2, | ||
int | n3, | ||
int | n4, | ||
int | n5, | ||
int | n6, | ||
int | n7, | ||
int | n8, | ||
int | n12, | ||
int | n23, | ||
int | n34, | ||
int | n41, | ||
int | n56, | ||
int | n67, | ||
int | n78, | ||
int | n85, | ||
int | n15, | ||
int | n26, | ||
int | n37, | ||
int | n48, | ||
int | n1234, | ||
int | n1256, | ||
int | n2367, | ||
int | n3478, | ||
int | n1458, | ||
int | n5678, | ||
int | nCenter | ||
) |
References SMESHDS_Command::AddVolume(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_AddTriQuadHexa.
References SMESHDS_Command::ChangeElementNodes(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_ChangeElementNodes.
Referenced by SMESHDS_Mesh::ChangeElementNodes().
void SMESHDS_Script::Clear | ( | ) |
References myCommands.
Referenced by ClearMesh(), SMESHDS_Mesh::ClearScript(), and ~SMESHDS_Script().
void SMESHDS_Script::ClearMesh | ( | ) |
References Clear(), getCommand(), myIsEmbeddedMode, myIsModified, and SMESHDS_ClearAll.
Referenced by SMESHDS_Mesh::ClearMesh().
|
private |
References SMESHDS_Command::GetType(), and myCommands.
Referenced by Add0DElement(), AddBall(), AddEdge(), AddFace(), AddNode(), AddPolygonalFace(), AddPolyhedralVolume(), AddQuadPolygonalFace(), AddVolume(), ChangeElementNodes(), ChangePolyhedronNodes(), ClearMesh(), MoveNode(), RemoveElement(), RemoveNode(), and Renumber().
const list< SMESHDS_Command * > & SMESHDS_Script::GetCommands | ( | ) |
References myCommands.
bool SMESHDS_Script::IsModified | ( | ) |
References myIsModified.
Referenced by SMESH_Client::Update().
void SMESHDS_Script::MoveNode | ( | int | NewNodeID, |
double | x, | ||
double | y, | ||
double | z | ||
) |
References getCommand(), SMESHDS_Command::MoveNode(), myIsEmbeddedMode, myIsModified, and SMESHDS_MoveNode.
Referenced by SMESHDS_Mesh::MoveNode().
void SMESHDS_Script::RemoveElement | ( | int | ElementID | ) |
References getCommand(), myIsEmbeddedMode, myIsModified, SMESHDS_Command::RemoveElement(), and SMESHDS_RemoveElement.
Referenced by SMESHDS_Mesh::RemoveElement(), and SMESHDS_Mesh::RemoveFreeElement().
void SMESHDS_Script::RemoveNode | ( | int | NodeID | ) |
References getCommand(), myIsEmbeddedMode, myIsModified, SMESHDS_Command::RemoveNode(), and SMESHDS_RemoveNode.
Referenced by SMESHDS_Mesh::RemoveFreeNode(), and SMESHDS_Mesh::RemoveNode().
References getCommand(), myIsEmbeddedMode, myIsModified, SMESHDS_Command::Renumber(), and SMESHDS_Renumber.
void SMESHDS_Script::SetModified | ( | bool | theModified | ) |
References myIsModified.
Referenced by SMESHDS_Mesh::compactMesh(), and SMESH_Client::Update().
|
private |
Referenced by Clear(), getCommand(), and GetCommands().
|
private |
|
private |
Referenced by Add0DElement(), AddBall(), AddEdge(), AddFace(), AddNode(), AddPolygonalFace(), AddPolyhedralVolume(), AddQuadPolygonalFace(), AddVolume(), ChangeElementNodes(), ChangePolyhedronNodes(), ClearMesh(), IsModified(), MoveNode(), RemoveElement(), RemoveNode(), Renumber(), and SetModified().