NeoPZ
|
To export a graphical node. Post processing. More...
#include <pzgraphnode.h>
Public Member Functions | |
TPZGraphNode () | |
Default constructor. More... | |
TPZGraphNode (TPZConnect *cn, TPZGraphMesh *gm) | |
Constructor for graphical node. More... | |
~TPZGraphNode (void) | |
Simple destructor. More... | |
int | ClassId () const override |
Define the class id associated with the class. More... | |
void | Read (TPZStream &buf, void *context) override |
read objects from the stream More... | |
void | Write (TPZStream &buf, int withclassid) const override |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More... | |
int64_t | SequenceNumber () |
void | SetSequenceNumber (int64_t seqnum) |
void | SetElement (TPZGraphEl *gel) |
void | SetConnect (TPZConnect *connect) |
void | SetGraphMesh (TPZGraphMesh *mesh) |
int | NPoints () |
void | SetPointNumber (int64_t num) |
void | DrawCo (TPZDrawStyle st=EDXStyle) |
Draw coordinates of the graphical node. More... | |
void | DrawSolution (int solutionid, TPZDrawStyle st=EDXStyle) |
Draw solution on the current connect for solutionid variable. More... | |
void | DrawSolution (TPZVec< int > &solutionid, TPZDrawStyle st=EDXStyle) |
void | DrawSolution (TPZBlock< REAL > &sol, TPZDrawStyle st=EDXStyle) |
int64_t | FirstPoint () |
void | Print (std::ostream &out) |
Public Member Functions inherited from TPZSavable | |
TPZSavable () | |
virtual | ~TPZSavable () |
virtual std::list< std::map< std::string, uint64_t > > | VersionHistory () const |
virtual std::pair< std::string, uint64_t > | Version () const |
virtual bool | Compare (TPZSavable *copy, bool override=false) |
Compares the object for identity with the object pointed to, eventually copy the object. More... | |
virtual bool | Compare (TPZSavable *copy, bool override=false) const |
Compares the object for identity with the object pointed to, eventually copy the object. More... | |
Public Member Functions inherited from TPZRegisterClassId | |
template<typename T > | |
TPZRegisterClassId (int(T::*)() const) | |
TPZRegisterClassId ()=default | |
Protected Attributes | |
TPZConnect * | fConnect |
Connect associated with current graphical node. More... | |
TPZGraphMesh * | fGraphMesh |
Graphical mesh related. More... | |
TPZGraphEl * | fGraphEl |
Graphical element related. More... | |
int64_t | fPointNum |
Private Attributes | |
int64_t | fSequenceNumber |
Additional Inherited Members | |
Static Public Member Functions inherited from TPZSavable | |
static std::set< TPZRestoreClassBase * > & | RestoreClassSet () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::map< int, TPZRestore_t > & | ClassIdMap () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::pair< std::string, uint64_t > | NeoPZVersion () |
static void | Register (TPZRestoreClassBase *restore) |
static void | RegisterClassId (int classid, TPZRestore_t fun) |
static TPZSavable * | CreateInstance (const int &classId) |
To export a graphical node. Post processing.
Definition at line 24 of file pzgraphnode.h.
TPZGraphNode::TPZGraphNode | ( | ) |
Default constructor.
Definition at line 21 of file pzgraphnode.cpp.
TPZGraphNode::TPZGraphNode | ( | TPZConnect * | cn, |
TPZGraphMesh * | gm | ||
) |
Constructor for graphical node.
Definition at line 12 of file pzgraphnode.cpp.
References TPZConnect::SequenceNumber().
TPZGraphNode::~TPZGraphNode | ( | void | ) |
Simple destructor.
Definition at line 30 of file pzgraphnode.cpp.
|
overridevirtual |
Define the class id associated with the class.
This id has to be unique for all classes A non unique id is flagged at the startup of the program
Implements TPZSavable.
Definition at line 34 of file pzgraphnode.cpp.
References Hash().
void TPZGraphNode::DrawCo | ( | TPZDrawStyle | st = EDXStyle | ) |
Draw coordinates of the graphical node.
Definition at line 84 of file pzgraphnode.cpp.
Referenced by TPZVTKGraphMesh::DrawNodes(), TPZMVGraphMesh::DrawNodes(), TPZGraphMesh::DrawNodes(), and SetSequenceNumber().
void TPZGraphNode::DrawSolution | ( | int | solutionid, |
TPZDrawStyle | st = EDXStyle |
||
) |
Draw solution on the current connect for solutionid variable.
Definition at line 89 of file pzgraphnode.cpp.
Referenced by TPZVTKGraphMesh::DrawSolution(), TPZMVGraphMesh::DrawSolution(), TPZV3DGraphMesh::DrawSolution(), TPZDXGraphMesh::DrawSolution(), and SetSequenceNumber().
void TPZGraphNode::DrawSolution | ( | TPZVec< int > & | solutionid, |
TPZDrawStyle | st = EDXStyle |
||
) |
Definition at line 93 of file pzgraphnode.cpp.
void TPZGraphNode::DrawSolution | ( | TPZBlock< REAL > & | sol, |
TPZDrawStyle | st = EDXStyle |
||
) |
Definition at line 97 of file pzgraphnode.cpp.
int64_t TPZGraphNode::FirstPoint | ( | void | ) |
Definition at line 55 of file pzgraphnode.cpp.
Referenced by TPZGraphEl::DrawCo(), TPZGraphEl::DrawSolution(), TPZGraphEl1dd::EqNum(), TPZGraphElQ2d::EqNum(), TPZGraphElQ2dd::EqNum(), TPZGraphElTd::EqNum(), TPZGraphElT::EqNum(), TPZGraphElQ3dd::EqNum(), TPZGraphEl1d::EqNum(), TPZGraphEl1dd::Print(), TPZGraphEl1d::Print(), TPZMVGraphMesh::SequenceNodes(), TPZV3DGraphMesh::SequenceNodes(), and SetSequenceNumber().
int TPZGraphNode::NPoints | ( | ) |
Definition at line 78 of file pzgraphnode.cpp.
Referenced by TPZVTKGraphMesh::DrawNodes(), TPZMVGraphMesh::DrawNodes(), TPZGraphMesh::NPoints(), TPZGraphMesh::SequenceNodes(), and SetSequenceNumber().
void TPZGraphNode::Print | ( | std::ostream & | out | ) |
Definition at line 101 of file pzgraphnode.cpp.
Referenced by TPZGraphMesh::Print(), and SetSequenceNumber().
|
overridevirtual |
read objects from the stream
Reimplemented from TPZSavable.
Definition at line 38 of file pzgraphnode.cpp.
References TPZPersistenceManager::GetInstance(), and TPZStream::Read().
|
inline |
Definition at line 38 of file pzgraphnode.h.
References fSequenceNumber.
Referenced by TPZGraphElQ2d::EqNum(), TPZGraphElT::EqNum(), TPZGraphEl1d::EqNum(), TPZGraphMesh::FindNode(), TPZGraphEl1dd::Print(), TPZGraphEl1d::Print(), and TPZGraphEl::TPZGraphEl().
void TPZGraphNode::SetConnect | ( | TPZConnect * | connect | ) |
Definition at line 70 of file pzgraphnode.cpp.
Referenced by SetSequenceNumber(), and TPZGraphEl::TPZGraphEl().
void TPZGraphNode::SetElement | ( | TPZGraphEl * | gel | ) |
Definition at line 60 of file pzgraphnode.cpp.
Referenced by SetSequenceNumber(), and TPZGraphEl::TPZGraphEl().
void TPZGraphNode::SetGraphMesh | ( | TPZGraphMesh * | mesh | ) |
Definition at line 74 of file pzgraphnode.cpp.
Referenced by SetSequenceNumber(), and TPZGraphEl::TPZGraphEl().
void TPZGraphNode::SetPointNumber | ( | int64_t | num | ) |
Definition at line 65 of file pzgraphnode.cpp.
Referenced by TPZMVGraphMesh::SequenceNodes(), TPZV3DGraphMesh::SequenceNodes(), TPZGraphMesh::SequenceNodes(), and SetSequenceNumber().
|
inline |
Definition at line 39 of file pzgraphnode.h.
References DrawCo(), DrawSolution(), EDXStyle, FirstPoint(), fSequenceNumber, NPoints(), Print(), SetConnect(), SetElement(), SetGraphMesh(), and SetPointNumber().
Referenced by TPZGraphEl::TPZGraphEl().
|
overridevirtual |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
Writes this object to the TPZStream buffer. Include the classid if withclassid = true
Reimplemented from TPZSavable.
Definition at line 46 of file pzgraphnode.cpp.
References TPZStream::Write(), and TPZPersistenceManager::WritePointer().
|
protected |
Connect associated with current graphical node.
Definition at line 58 of file pzgraphnode.h.
|
protected |
Graphical element related.
Definition at line 62 of file pzgraphnode.h.
|
protected |
Graphical mesh related.
Definition at line 60 of file pzgraphnode.h.
|
protected |
Definition at line 63 of file pzgraphnode.h.
|
private |
Definition at line 66 of file pzgraphnode.h.
Referenced by SequenceNumber(), and SetSequenceNumber().