NeoPZ
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TPZGraphEl Class Referenceabstract

Abstract class to graphical one-, two- and three-dimensional element. Post processing. More...

#include <pzgraphel.h>

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

Public Member Functions

 TPZGraphEl (TPZCompEl *cel, TPZGraphMesh *gmesh, TPZGraphNode **connectvec)
 Constructor of the graphical element. More...
 
 TPZGraphEl (TPZCompEl *cel, TPZGraphMesh *gmesh, TPZGraphNode *&connect)
 Constructor of the graphical element. More...
 
virtual ~TPZGraphEl (void)
 Default destructor. More...
 
virtual int ClassId () const override
 Define the class id associated with the class. More...
 
virtual void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
virtual void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
virtual int NConnects ()=0
 Number of connects for the element. More...
 
int64_t Id ()
 Get the Id of the graphical element. More...
 
virtual MElementType Type ()=0
 Get the type of the graphical element. More...
 
virtual int ExportType (TPZDrawStyle st)=0
 Sets the style to export (format) More...
 
virtual int NNodes ()=0
 Number of corner nodes (geometric information) More...
 
virtual TPZGraphNodeConnect (int64_t con)=0
 Return the graphical connect. More...
 
void SetId (int64_t id)
 Set graphical element id. More...
 
virtual int NPoints (TPZGraphNode *n)=0
 Number of points to graphical resolution. More...
 
virtual int NElements ()=0
 
virtual void SetNode (int64_t i, TPZGraphNode *n)
 Sets a ith graphical node. More...
 
virtual int Dimension ()=0
 the parametric dimension of the element More...
 
virtual void Connectivity (TPZDrawStyle st=EDXStyle)=0
 Set dx style for connectivity information. More...
 
void DrawCo (TPZGraphNode *n, TPZDrawStyle st)
 Draw coordinates of the graphical node. More...
 
void DrawSolution (TPZGraphNode *n, TPZBlock< REAL > &Sol, TPZDrawStyle st)
 Draw solution of the graphical node. More...
 
void DrawSolution (TPZGraphNode *n, int solind, TPZDrawStyle st)
 
void DrawSolution (TPZGraphNode *n, TPZVec< int > &solind, TPZDrawStyle st)
 
void Print (std::ostream &out)
 Print the information of the graphical element. More...
 
virtual int64_t EqNum (TPZVec< int > &co)=0
 Number of equations. More...
 
- 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
 

Static Public Member Functions

static int StaticClassId ()
 
- 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)
 

Protected Member Functions

virtual void FirstIJ (int connect, TPZVec< int > &co, int &incr)=0
 
virtual void NextIJ (int connect, TPZVec< int > &co, int incr)=0
 
int ConnectNum (TPZGraphNode *n)
 Returns the number of the graphical node in the vector of connects. More...
 
virtual void QsiEta (TPZVec< int > &i, int imax, TPZVec< REAL > &qsieta)
 This method maps the index of a point to parameter space as a function of the number of divisions. More...
 

Protected Attributes

TPZCompElfCompEl
 Computational element associated with graphical element. More...
 
TPZGraphMeshfGraphMesh
 Graphical mesh associated with graphical element. More...
 
int64_t fId
 Id of the graphical element. More...
 

Detailed Description

Abstract class to graphical one-, two- and three-dimensional element. Post processing.

Definition at line 23 of file pzgraphel.h.

Constructor & Destructor Documentation

◆ TPZGraphEl() [1/2]

TPZGraphEl::TPZGraphEl ( TPZCompEl cel,
TPZGraphMesh gmesh,
TPZGraphNode **  connectvec 
)

◆ TPZGraphEl() [2/2]

TPZGraphEl::TPZGraphEl ( TPZCompEl cel,
TPZGraphMesh gmesh,
TPZGraphNode *&  connect 
)

◆ ~TPZGraphEl()

TPZGraphEl::~TPZGraphEl ( void  )
virtual

Default destructor.

Definition at line 58 of file pzgraphel.cpp.

Member Function Documentation

◆ ClassId()

int TPZGraphEl::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 188 of file pzgraphel.cpp.

◆ Connect()

virtual TPZGraphNode* TPZGraphEl::Connect ( int64_t  con)
pure virtual

Return the graphical connect.

Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphElT, TPZGraphEl1d, TPZGraphElTd, TPZGraphElQ2dd, and TPZGraphElQ2d.

Referenced by Id().

◆ Connectivity()

virtual void TPZGraphEl::Connectivity ( TPZDrawStyle  st = EDXStyle)
pure virtual

◆ ConnectNum()

int TPZGraphEl::ConnectNum ( TPZGraphNode n)
protected

Returns the number of the graphical node in the vector of connects.

Definition at line 72 of file pzgraphel.cpp.

Referenced by TPZGraphElQ2d::NPoints(), TPZGraphElT::NPoints(), and TPZGraphEl1d::NPoints().

◆ Dimension()

virtual int TPZGraphEl::Dimension ( )
pure virtual

the parametric dimension of the element

Implemented in TPZGraphElQ3dd, TPZGraphElQ2dd, TPZGraphEl1dd, TPZGraphElQ2d, TPZGraphElT, TPZGraphEl1d, and TPZGraphElTd.

Referenced by SetId().

◆ DrawCo()

void TPZGraphEl::DrawCo ( TPZGraphNode n,
TPZDrawStyle  st 
)

Draw coordinates of the graphical node.

Definition at line 79 of file pzgraphel.cpp.

References co, EMVStyle, EV3DStyle, TPZGraphNode::FirstPoint(), and test::res.

Referenced by SetId().

◆ DrawSolution() [1/3]

void TPZGraphEl::DrawSolution ( TPZGraphNode n,
TPZBlock< REAL > &  Sol,
TPZDrawStyle  st 
)

Draw solution of the graphical node.

Definition at line 110 of file pzgraphel.cpp.

Referenced by SetId().

◆ DrawSolution() [2/3]

void TPZGraphEl::DrawSolution ( TPZGraphNode n,
int  solind,
TPZDrawStyle  st 
)

Definition at line 105 of file pzgraphel.cpp.

◆ DrawSolution() [3/3]

void TPZGraphEl::DrawSolution ( TPZGraphNode n,
TPZVec< int > &  solind,
TPZDrawStyle  st 
)

◆ EqNum()

virtual int64_t TPZGraphEl::EqNum ( TPZVec< int > &  co)
pure virtual

Number of equations.

Implemented in TPZGraphEl1d, TPZGraphElQ3dd, TPZGraphElT, TPZGraphElQ2dd, TPZGraphElTd, TPZGraphElQ2d, and TPZGraphEl1dd.

Referenced by SetId().

◆ ExportType()

virtual int TPZGraphEl::ExportType ( TPZDrawStyle  st)
pure virtual

Sets the style to export (format)

Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElTd, TPZGraphElT, TPZGraphElQ2dd, and TPZGraphElQ2d.

Referenced by TPZVTKGraphMesh::DrawConnectivity(), and Id().

◆ FirstIJ()

virtual void TPZGraphEl::FirstIJ ( int  connect,
TPZVec< int > &  co,
int &  incr 
)
protectedpure virtual

◆ Id()

int64_t TPZGraphEl::Id ( )
inline

Get the Id of the graphical element.

Definition at line 42 of file pzgraphel.h.

References Connect(), ExportType(), fId, NNodes(), and Type().

Referenced by TPZGraphMesh::FindElement().

◆ NConnects()

virtual int TPZGraphEl::NConnects ( )
pure virtual

Number of connects for the element.

Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElT, TPZGraphElQ2dd, TPZGraphElTd, and TPZGraphElQ2d.

Referenced by TPZMVGraphMesh::DrawConnectivity().

◆ NElements()

virtual int TPZGraphEl::NElements ( )
pure virtual

◆ NextIJ()

virtual void TPZGraphEl::NextIJ ( int  connect,
TPZVec< int > &  co,
int  incr 
)
protectedpure virtual

◆ NNodes()

virtual int TPZGraphEl::NNodes ( )
pure virtual

Number of corner nodes (geometric information)

Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElTd, TPZGraphElT, TPZGraphElQ2dd, and TPZGraphElQ2d.

Referenced by TPZVTKGraphMesh::DrawConnectivity(), and Id().

◆ NPoints()

virtual int TPZGraphEl::NPoints ( TPZGraphNode n)
pure virtual

Number of points to graphical resolution.

Implemented in TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElTd, TPZGraphElT, TPZGraphElQ2dd, TPZGraphElQ2d, and TPZGraphEl1dd.

Referenced by SetId().

◆ Print()

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

Print the information of the graphical element.

Definition at line 170 of file pzgraphel.cpp.

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

◆ QsiEta()

void TPZGraphEl::QsiEta ( TPZVec< int > &  i,
int  imax,
TPZVec< REAL > &  qsieta 
)
protectedvirtual

This method maps the index of a point to parameter space as a function of the number of divisions.

Reimplemented in TPZGraphElT, TPZGraphElTd, TPZGraphElT2dMapped, TPZGraphElT3d, TPZGraphElPrismMapped, and TPZGraphElPyramidMapped.

Definition at line 62 of file pzgraphel.cpp.

References TPZVec< T >::NElements().

Referenced by TPZGraphElPrismMapped::QsiEta(), TPZGraphElPyramidMapped::QsiEta(), TPZGraphElT2dMapped::QsiEta(), and TPZGraphElT3d::QsiEta().

◆ Read()

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

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 192 of file pzgraphel.cpp.

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

◆ SetId()

void TPZGraphEl::SetId ( int64_t  id)
inline

Set graphical element id.

Definition at line 54 of file pzgraphel.h.

References co, Connectivity(), Dimension(), DrawCo(), DrawSolution(), EDXStyle, EqNum(), fId, NElements(), NPoints(), Print(), and SetNode().

Referenced by TPZGraphMesh::SequenceNodes().

◆ SetNode()

void TPZGraphEl::SetNode ( int64_t  i,
TPZGraphNode n 
)
virtual

Sets a ith graphical node.

Reimplemented in TPZGraphEl1d, TPZGraphEl1dd, TPZGraphElT, TPZGraphElTd, TPZGraphElQ3dd, TPZGraphElQ2dd, and TPZGraphElQ2d.

Definition at line 55 of file pzgraphel.cpp.

Referenced by SetId().

◆ StaticClassId()

int TPZGraphEl::StaticClassId ( )
static

Definition at line 184 of file pzgraphel.cpp.

References Hash().

◆ Type()

virtual MElementType TPZGraphEl::Type ( )
pure virtual

◆ Write()

void TPZGraphEl::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 198 of file pzgraphel.cpp.

References TPZStream::Write(), and TPZPersistenceManager::WritePointer().

Member Data Documentation

◆ fCompEl

TPZCompEl* TPZGraphEl::fCompEl
protected

Computational element associated with graphical element.

Definition at line 85 of file pzgraphel.h.

◆ fGraphMesh

TPZGraphMesh* TPZGraphEl::fGraphMesh
protected

◆ fId

int64_t TPZGraphEl::fId
protected

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