8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_CLASSIC_PARSER_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_CLASSIC_PARSER_H
22 namespace SceneDescription
55 explicit ClassicParser(
const std::string& filename,
float* progress =
nullptr,
bool* cancel =
nullptr);
This class implements a token for the scanner.
Definition: Scanner.h:43
This class implements a axis-angle rotation using floating point values.
Definition: Rotation.h:79
This class implements all 1D fields (fields holding an array of single values).
Definition: Field1D.h:110
This class is the base class for all scene description fields.
Definition: Field.h:36
This class is the base class for all scene description libraries.
Definition: scenedescription/Library.h:37
This class implements a parser for the classic x3d file format.
Definition: ClassicParser.h:39
void parseField(MultiColor &field)
Parses a MFColor field.
void parseField(MultiFloat &field)
Parses a MFFloat field.
void parseField(MultiMatrix3 &field)
Parses a MFMatrix3f field.
void parseRoute()
Parses a route statement.
SDXSceneRef parse(const Library &library, const Rendering::EngineRef &engine, const Timestamp timestamp=Timestamp())
Parses the given file and returns a node reference to the entire scene.
void parseField(MultiRotation &field)
Parses a MFRotation field.
ClassicScanner scanner_
Scanner scanning x3d token.
Definition: ClassicParser.h:291
void parseField(MultiInt &field)
Parses a MFInt32 field.
void parseField(SingleNode &field)
Parses a SFNode field.
void parseField(SingleMatrix3 &field)
Parses a SFMatrix3 field.
bool parseBool()
Parses a boolean value.
Rotation parseRotation()
Parses a rotation value.
void parseField(MultiNode &field)
Parses a MFNode field.
void parseProfile()
Parses a profile statement.
void parseField(MultiString &field)
Parses a MFString field.
void parseField(SingleString &field)
Parses a SFString field.
void parseField(SingleTime &field)
Parses a SFTime field.
ClassicScanner::Token Token
Definition of a scanner token.
Definition: ClassicParser.h:45
void parseField(MultiVector2 &field)
Parses a MFVec2f field.
void parseField(SingleVector3 &field)
Parses a SFVec3f field.
void parseField(MultiTime &field)
Parses a MFTime field.
void parseMeta()
Parses a meta statement.
void parseField(SingleInt &field)
Parses a SFInt32 field.
ClassicParser(const std::string &filename, float *progress=nullptr, bool *cancel=nullptr)
Creates a new classic parser.
void parseField(SingleMatrix4 &field)
Parses a SFMatrix4 field.
NodeRef parseNode()
Parses a new node.
void parseField(MultiMatrix4 &field)
Parses a MFMatrix4f field.
void parseField(SingleBool &field)
Parses a SFBool field.
std::string parseString()
Parses a string value.
void parseField(SingleVector2 &field)
Parses a SFVec2f field.
Scalar parseFloat()
Parses a float value.
void parseField(MultiVector4 &field)
Parses a MFVec4f field.
void parseField(MultiVector3 &field)
Parses a MFVec3f field.
void addDynamicField(const Token &token, const NodeRef &node)
Adds a dynamic field.
void parseField(Field &field)
Parses a field.
void parseField(MultiBool &field)
Parses a MFBool field.
void parseField(SingleColor &field)
Parses a SFColor field.
bool skipNode(const bool nodeStartedAlready)
Skips a unknown x3d node.
void parseField(SingleRotation &field)
Parses a SFRotation field.
void parseField(SingleVector4 &field)
Parses a SFVec4f field.
void parseField(SingleFloat &field)
Parses a SFFloat field.
This class implements a scanner for the classic x3d file format.
Definition: ClassicScanner.h:32
This class implements a scene object holding an entire x3d scene.
Definition: X3DScene.h:39
This class implements a timestamp.
Definition: Timestamp.h:36
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15