Choreonoid  1.5
Namespaces | Typedefs | Enumerations
DaeParser.cpp File Reference

Collada file is read only once like SAX in IrrXML. It handled temporarily all the information at that time, it then creates and returns an SgObject. More...

#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <float.h>
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <Eigen/SVD>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <cnoid/MeshGenerator>
#include <cnoid/MeshNormalGenerator>
#include <cnoid/SceneGraph>
#include <cnoid/ValueTree>
#include <irrXML.h>
#include "SceneDrawables.h"
#include "PolygonMeshTriangulator.h"
#include "Exception.h"
#include "DaeParser.h"
#include "DaeNode.h"
#include "FileUtil.h"

Namespaces

 cnoid
 Defines the minimum processing for performing pasing file for STL.
 

Typedefs

typedef pair< string, DaeGeometryPtr > cnoid::GEOMETRY_PAIR
 
typedef pair< string, DaeNodePtr > cnoid::NODES_PAIR
 
typedef std::vector< std::string > cnoid::DaeOrder
 
typedef std::map< std::string, int > cnoid::DaeStrides
 
typedef std::map< std::string, std::string > cnoid::DaeVerticesRef
 

Enumerations

enum  {
  cnoid::EXT_NODE, cnoid::EXT_UNIT, cnoid::EXT_TRANSLATE, cnoid::EXT_ROTATE,
  cnoid::EXT_SCALE, cnoid::EXT_MATRIX, cnoid::EXT_INSTANCE_NODE, cnoid::EXT_INSTANCE_GEOMETRY,
  cnoid::EXT_INSTANCE_MATERIAL, cnoid::EXT_INSTANCE_EFFECT, cnoid::EXT_GEOMETRY, cnoid::EXT_VERTICES,
  cnoid::EXT_SOURCE, cnoid::EXT_FLOAT_ARRAY, cnoid::EXT_ACCESSOR, cnoid::EXT_INPUT,
  cnoid::EXT_TRIANGLES, cnoid::EXT_LINES, cnoid::EXT_P, cnoid::EXT_MATERIAL,
  cnoid::EXT_EFFECT, cnoid::EXT_EMISSION, cnoid::EXT_AMBIENT, cnoid::EXT_DIFFUSE,
  cnoid::EXT_SPECULAR, cnoid::EXT_SHININESS, cnoid::EXT_TRANSPARENCY, cnoid::EXT_INIT_FORM,
  cnoid::EXT_IMAGE, cnoid::EXT_POLYLIST, cnoid::EXT_VCOUNT, cnoid::EXT_BOX,
  cnoid::EXT_SPHERE, cnoid::EXT_CYLINDER, cnoid::EXT_TAPERED_CYLINDER, cnoid::EXT_KINEMATICS_MODEL,
  cnoid::EXT_LINK, cnoid::EXT_ATTACHMENT_FULL, cnoid::EXT_JOINT, cnoid::EXT_REVOLUTE,
  cnoid::EXT_PRISMATIC, cnoid::EXT_AXIS, cnoid::EXT_MIN, cnoid::EXT_MAX,
  cnoid::EXT_RIGID_BODY, cnoid::EXT_SHAPE, cnoid::EXT_INSTANCE_RIGID_BODY, cnoid::EXT_INSTANCE_PHYSICS_MODEL,
  cnoid::EXT_MASS, cnoid::EXT_MASS_FRAME, cnoid::EXT_INERTIA, cnoid::EXT_ACTUATOR,
  cnoid::EXT_ASSIGNED_POWER_RATING, cnoid::EXT_MAX_SPEED, cnoid::EXT_NO_LOAD_SPEED, cnoid::EXT_NOMINAL_TORQUE,
  cnoid::EXT_NOMINAL_VOLTAGE, cnoid::EXT_ROTOR_INERTIA, cnoid::EXT_SPEED_CONSTANT, cnoid::EXT_SPEED_TORQUE_GRADIENT,
  cnoid::EXT_STARTING_CURRENT, cnoid::EXT_TERMINAL_RESISTANCE, cnoid::EXT_TORQUE_CONSTANT, cnoid::EXT_INSTANCE_ACTUATOR,
  cnoid::EXT_BIND_ACTUATOR, cnoid::EXT_INSTANCE_SENSOR, cnoid::EXT_FRAME_ORIGIN, cnoid::EXT_SENSOR,
  cnoid::EXT_FOCAL_LENGTH, cnoid::EXT_INTRINSIC, cnoid::EXT_IMAGE_DIMENSIONS, cnoid::EXT_MEASUREMENT_TIME,
  cnoid::EXT_EXTRA
}
 Enumeration type of "TAG" used in Collada. More...
 
enum  {
  cnoid::EXT_POSITION, cnoid::EXT_VERTEX, cnoid::EXT_NORMAL, cnoid::EXT_COLOR,
  cnoid::EXT_TEXCOORD
}
 These indexes are defined in polylist tag and triangles. More...
 
enum  {
  cnoid::EXT_VISUAL_SCENES, cnoid::EXT_GEOMETRIES, cnoid::EXT_MATERIALS, cnoid::EXT_EFFECTS,
  cnoid::EXT_NODES, cnoid::EXT_IMAGES, cnoid::EXT_PHYSICS_MODELS, cnoid::EXT_KINEMATICS_MODELS,
  cnoid::EXT_PHYSICS_SCENES
}
 An enumeration type of the "BASE" node in the Collada. Information("CONCRETE or LIBRARY") of the entity has been stored in these nodes. More...
 
enum  { cnoid::EXT_NODE_NODE, cnoid::EXT_NODE_JOINT }
 There are two types of joint and node to node of Collada. It will remain at that type when reading the node tags. More...
 

Detailed Description

Collada file is read only once like SAX in IrrXML. It handled temporarily all the information at that time, it then creates and returns an SgObject.

Author
Hisashi Ikari