YAMLParser
FEVector.h
Go to the documentation of this file.
1 
4 #pragma once
5 #include "yaml-cpp/yaml.h"
6 #include "GenericFE.h"
7 
8 class FEVector :
9  public GenericFE
10 {
11 public:
12  FEVector(YAML::Node& yamlNode, std::string vecType);
14  FEVector(int id, double x, double y, double z);
15  ~FEVector();
16 
17 
18  //---------- Functions ----------
20  std::string getTypeAsString();
21  // Inherited via GenericFE
22  virtual void printAttributes() override;
23  virtual bool assignIndependentAttributes(YAML::Node & yamlNode) override;
24 
25  void normalizeVector();
26 
27  //---------- Data fields ----------
28  double vec[3];
29 
30 };
31 
double vec[3]
The vector data. Contents: x-, y-, and z-components of the vector.
Definition: FEVector.h:28
FEVector(YAML::Node &yamlNode, std::string vecType)
Definition: FEVector.cpp:6
This class represents a (normalized) vector used to define element orientation.
Definition: FEVector.h:8
~FEVector()
Definition: FEVector.cpp:21
virtual void printAttributes() override
Definition: FEVector.cpp:65
void normalizeVector()
Normalize the vector (named vec)
Definition: FEVector.cpp:52
std::string getTypeAsString()
Definition: FEVector.cpp:26
virtual bool assignIndependentAttributes(YAML::Node &yamlNode) override
Definition: FEVector.cpp:28
Identifiable::Type getType()
Definition: FEVector.cpp:25
This is the base class for all element classes.
Definition: GenericFE.h:13
Type
Definition: Identifiable.h:26