Choreonoid  1.5
DaeParser.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_EXT_DAE_PARSER_H_INCLUDED
7 #define CNOID_UTIL_EXT_DAE_PARSER_H_INCLUDED
8 
9 #include "Parser.h"
10 #include "DaeNode.h"
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class DaeParserImpl;
16 
21 {
22 public:
23  DaeParser(std::ostream* os);
24  ~DaeParser();
25 
26  virtual SgGroup* createScene(const std::string& fileName);
27 
28  virtual void parse(const std::string& fileName);
29 
30  virtual DaeNode* findNode (const std::string& nodeName);
31  virtual DaeNode* findLinkByJoint(const std::string& jointName);
32  virtual DaeNode* findJointByLink(const std::string& linkName);
33  virtual DaeNode* findRigidByLink(const std::string& linkName);
34  virtual DaeNode* findActuator (const std::string& jointId);
35  virtual DaeResultSensors* findSensor (const std::string& linkId);
36 
37  virtual DaeNode* findRootLink();
38  virtual std::string findRootName();
39 
40  virtual void createNode (DaeNodePtr extNode, SgGroup* sg);
41  virtual void createTransform(DaeNodePtr extNode, SgGroup** sgParent, SgGroup** sgChild);
42 
43 private:
44  DaeParserImpl* daeParserImpl;
45 
46 };
47 
48 };
49 
50 #endif
51 
52 
Perform the processing for each node as sax.
Definition: DaeParser.h:20
Defines the minimum processing for performing pasing file.
std::vector< DaeSensor * > DaeResultSensors
Definition: DaeNode.h:443
Definition: SceneGraph.h:160
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
This is the base class of the dae parser.
Definition: DaeNode.h:215
It define a base class to parse the 3D model file. This will return SceneGraph in a single file that ...
Definition: Parser.h:16
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37
Collada file is read only once like SAX in IrrXML. It handled temporarily all the information at that...