NeoPZ
pzgraphnode.h
Go to the documentation of this file.
1 
6 #ifndef GRAFNODEH
7 #define GRAFNODEH
8 
9 #include "pzconnect.h"
10 #include "pzvec.h"
11 #include "TPZDrawStyle.h"
12 
13 #include <iostream>
14 
15 class TPZGraphMesh;
16 class TPZGraphEl;
17 template<class TVar>
18 class TPZBlock;
19 
24 class TPZGraphNode : public TPZSavable {
25 
26 public:
28  TPZGraphNode();
32  ~TPZGraphNode(void);
33  int ClassId() const override;
34  void Read(TPZStream &buf, void *context) override;
35  void Write(TPZStream &buf, int withclassid) const override;
36 
37  //int ElIndex();
38  int64_t SequenceNumber() {return fSequenceNumber;}
39  void SetSequenceNumber(int64_t seqnum) {fSequenceNumber = seqnum;}
40  void SetElement(TPZGraphEl *gel);
41  void SetConnect(TPZConnect *connect);
42  void SetGraphMesh(TPZGraphMesh *mesh);
43  int NPoints();
44  void SetPointNumber(int64_t num);
46  void DrawCo(TPZDrawStyle st = EDXStyle);
48  void DrawSolution(int solutionid, TPZDrawStyle st = EDXStyle);
49  void DrawSolution(TPZVec<int> &solutionid, TPZDrawStyle st= EDXStyle);
51 
52  int64_t FirstPoint();
53 
54  void Print(std::ostream &out);
55 
56 protected:
63  int64_t fPointNum;
64 
65 private:
66  int64_t fSequenceNumber;
67 };
68 
69 #endif
Represents a graphical mesh used for post processing purposes. Post processing.
Definition: pzgraphmesh.h:34
TPZGraphMesh * fGraphMesh
Graphical mesh related.
Definition: pzgraphnode.h:60
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
Definition: pzgraphnode.cpp:46
void Print(std::ostream &out)
Represents a set of shape functions associated with a computational element/side. Computational Eleme...
Definition: pzconnect.h:30
void SetGraphMesh(TPZGraphMesh *mesh)
Definition: pzgraphnode.cpp:74
TPZGraphNode()
Default constructor.
Definition: pzgraphnode.cpp:21
void DrawSolution(int solutionid, TPZDrawStyle st=EDXStyle)
Draw solution on the current connect for solutionid variable.
Definition: pzgraphnode.cpp:89
Templated vector implementation.
void SetConnect(TPZConnect *connect)
Definition: pzgraphnode.cpp:70
int64_t FirstPoint()
Definition: pzgraphnode.cpp:55
int ClassId() const override
Define the class id associated with the class.
Definition: pzgraphnode.cpp:34
Definition: TPZDrawStyle.h:12
void SetPointNumber(int64_t num)
Definition: pzgraphnode.cpp:65
void Read(TPZStream &buf, void *context) override
read objects from the stream
Definition: pzgraphnode.cpp:38
Contains declaration of TPZConnect class which represents a set of shape functions associated with a ...
int64_t SequenceNumber()
Definition: pzgraphnode.h:38
void SetElement(TPZGraphEl *gel)
Definition: pzgraphnode.cpp:60
void DrawCo(TPZDrawStyle st=EDXStyle)
Draw coordinates of the graphical node.
Definition: pzgraphnode.cpp:84
Implements block matrices. Matrix utility.
TPZConnect * fConnect
Connect associated with current graphical node.
Definition: pzgraphnode.h:58
void SetSequenceNumber(int64_t seqnum)
Definition: pzgraphnode.h:39
Abstract class to graphical one-, two- and three-dimensional element. Post processing.
Definition: pzgraphel.h:23
int64_t fPointNum
Definition: pzgraphnode.h:63
Defines the interface for saving and reading data. Persistency.
Definition: TPZStream.h:50
~TPZGraphNode(void)
Simple destructor.
Definition: pzgraphnode.cpp:30
int64_t fSequenceNumber
Definition: pzgraphnode.h:66
This class defines the interface to save and restore objects from TPZStream objects. Persistency.
Definition: TPZSavable.h:67
To export a graphical node. Post processing.
Definition: pzgraphnode.h:24
TPZDrawStyle
Definition: TPZDrawStyle.h:12
TPZGraphEl * fGraphEl
Graphical element related.
Definition: pzgraphnode.h:62