NeoPZ
Public Member Functions | Protected Attributes | Private Attributes | List of all members
TPZGraphNode Class Reference

To export a graphical node. Post processing. More...

#include <pzgraphnode.h>

Inheritance diagram for TPZGraphNode:
[legend]
Collaboration diagram for TPZGraphNode:
[legend]

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

TPZConnectfConnect
 Connect associated with current graphical node. More...
 
TPZGraphMeshfGraphMesh
 Graphical mesh related. More...
 
TPZGraphElfGraphEl
 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 TPZSavableCreateInstance (const int &classId)
 

Detailed Description

To export a graphical node. Post processing.

Definition at line 24 of file pzgraphnode.h.

Constructor & Destructor Documentation

◆ TPZGraphNode() [1/2]

TPZGraphNode::TPZGraphNode ( )

Default constructor.

Definition at line 21 of file pzgraphnode.cpp.

◆ TPZGraphNode() [2/2]

TPZGraphNode::TPZGraphNode ( TPZConnect cn,
TPZGraphMesh gm 
)

Constructor for graphical node.

Definition at line 12 of file pzgraphnode.cpp.

References TPZConnect::SequenceNumber().

◆ ~TPZGraphNode()

TPZGraphNode::~TPZGraphNode ( void  )

Simple destructor.

Definition at line 30 of file pzgraphnode.cpp.

Member Function Documentation

◆ ClassId()

int TPZGraphNode::ClassId ( ) const
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().

◆ DrawCo()

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().

◆ DrawSolution() [1/3]

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().

◆ DrawSolution() [2/3]

void TPZGraphNode::DrawSolution ( TPZVec< int > &  solutionid,
TPZDrawStyle  st = EDXStyle 
)

Definition at line 93 of file pzgraphnode.cpp.

◆ DrawSolution() [3/3]

void TPZGraphNode::DrawSolution ( TPZBlock< REAL > &  sol,
TPZDrawStyle  st = EDXStyle 
)

Definition at line 97 of file pzgraphnode.cpp.

◆ FirstPoint()

int64_t TPZGraphNode::FirstPoint ( void  )

◆ NPoints()

int TPZGraphNode::NPoints ( )

◆ Print()

void TPZGraphNode::Print ( std::ostream &  out)

Definition at line 101 of file pzgraphnode.cpp.

Referenced by TPZGraphMesh::Print(), and SetSequenceNumber().

◆ Read()

void TPZGraphNode::Read ( TPZStream buf,
void *  context 
)
overridevirtual

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 38 of file pzgraphnode.cpp.

References TPZPersistenceManager::GetInstance(), and TPZStream::Read().

◆ SequenceNumber()

int64_t TPZGraphNode::SequenceNumber ( )
inline

◆ SetConnect()

void TPZGraphNode::SetConnect ( TPZConnect connect)

Definition at line 70 of file pzgraphnode.cpp.

Referenced by SetSequenceNumber(), and TPZGraphEl::TPZGraphEl().

◆ SetElement()

void TPZGraphNode::SetElement ( TPZGraphEl gel)

Definition at line 60 of file pzgraphnode.cpp.

Referenced by SetSequenceNumber(), and TPZGraphEl::TPZGraphEl().

◆ SetGraphMesh()

void TPZGraphNode::SetGraphMesh ( TPZGraphMesh mesh)

Definition at line 74 of file pzgraphnode.cpp.

Referenced by SetSequenceNumber(), and TPZGraphEl::TPZGraphEl().

◆ SetPointNumber()

void TPZGraphNode::SetPointNumber ( int64_t  num)

◆ SetSequenceNumber()

void TPZGraphNode::SetSequenceNumber ( int64_t  seqnum)
inline

◆ Write()

void TPZGraphNode::Write ( TPZStream buf,
int  withclassid 
) const
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().

Member Data Documentation

◆ fConnect

TPZConnect* TPZGraphNode::fConnect
protected

Connect associated with current graphical node.

Definition at line 58 of file pzgraphnode.h.

◆ fGraphEl

TPZGraphEl* TPZGraphNode::fGraphEl
protected

Graphical element related.

Definition at line 62 of file pzgraphnode.h.

◆ fGraphMesh

TPZGraphMesh* TPZGraphNode::fGraphMesh
protected

Graphical mesh related.

Definition at line 60 of file pzgraphnode.h.

◆ fPointNum

int64_t TPZGraphNode::fPointNum
protected

Definition at line 63 of file pzgraphnode.h.

◆ fSequenceNumber

int64_t TPZGraphNode::fSequenceNumber
private

Definition at line 66 of file pzgraphnode.h.

Referenced by SequenceNumber(), and SetSequenceNumber().


The documentation for this class was generated from the following files: