libslic3r
Library for generating gcode from 3d models
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Slic3r::IO::AMFParserContext Struct Reference

Classes

struct  Instance
 
struct  Object
 

Public Types

enum  AMFNodeType {
  NODE_TYPE_INVALID = 0, NODE_TYPE_UNKNOWN, NODE_TYPE_AMF, NODE_TYPE_MATERIAL,
  NODE_TYPE_OBJECT, NODE_TYPE_MESH, NODE_TYPE_VERTICES, NODE_TYPE_VERTEX,
  NODE_TYPE_COORDINATES, NODE_TYPE_COORDINATE_X, NODE_TYPE_COORDINATE_Y, NODE_TYPE_COORDINATE_Z,
  NODE_TYPE_VOLUME, NODE_TYPE_TRIANGLE, NODE_TYPE_VERTEX1, NODE_TYPE_VERTEX2,
  NODE_TYPE_VERTEX3, NODE_TYPE_CONSTELLATION, NODE_TYPE_INSTANCE, NODE_TYPE_DELTAX,
  NODE_TYPE_DELTAY, NODE_TYPE_RZ, NODE_TYPE_SCALE, NODE_TYPE_METADATA
}
 

Public Member Functions

 AMFParserContext (XML_Parser parser, Model *model)
 
void stop ()
 
void startElement (const char *name, const char **atts)
 
void endElement (const char *name)
 
void endDocument ()
 
void characters (const XML_Char *s, int len)
 

Static Public Member Functions

static void XMLCALL startElement (void *userData, const char *name, const char **atts)
 
static void XMLCALL endElement (void *userData, const char *name)
 
static void XMLCALL characters (void *userData, const XML_Char *s, int len)
 
static const char * get_attribute (const char **atts, const char *id)
 

Public Attributes

XML_Parser m_parser
 
Modelm_model
 
std::vector< AMFNodeTypem_path
 
ModelObjectm_object
 
std::map< std::string, Objectm_object_instances_map
 
std::vector< float > m_object_vertices
 
ModelVolumem_volume
 
std::vector< int > m_volume_facets
 
ModelMaterialm_material
 
Instancem_instance
 
std::string m_value [3]
 

Member Enumeration Documentation

◆ AMFNodeType

Enumerator
NODE_TYPE_INVALID 
NODE_TYPE_UNKNOWN 
NODE_TYPE_AMF 
NODE_TYPE_MATERIAL 
NODE_TYPE_OBJECT 
NODE_TYPE_MESH 
NODE_TYPE_VERTICES 
NODE_TYPE_VERTEX 
NODE_TYPE_COORDINATES 
NODE_TYPE_COORDINATE_X 
NODE_TYPE_COORDINATE_Y 
NODE_TYPE_COORDINATE_Z 
NODE_TYPE_VOLUME 
NODE_TYPE_TRIANGLE 
NODE_TYPE_VERTEX1 
NODE_TYPE_VERTEX2 
NODE_TYPE_VERTEX3 
NODE_TYPE_CONSTELLATION 
NODE_TYPE_INSTANCE 
NODE_TYPE_DELTAX 
NODE_TYPE_DELTAY 
NODE_TYPE_RZ 
NODE_TYPE_SCALE 
NODE_TYPE_METADATA 

Constructor & Destructor Documentation

◆ AMFParserContext()

Slic3r::IO::AMFParserContext::AMFParserContext ( XML_Parser  parser,
Model model 
)
inline

Member Function Documentation

◆ characters() [1/2]

void Slic3r::IO::AMFParserContext::characters ( const XML_Char *  s,
int  len 
)

◆ characters() [2/2]

static void XMLCALL Slic3r::IO::AMFParserContext::characters ( void *  userData,
const XML_Char *  s,
int  len 
)
inlinestatic

◆ endDocument()

void Slic3r::IO::AMFParserContext::endDocument ( )

◆ endElement() [1/2]

void Slic3r::IO::AMFParserContext::endElement ( const char *  name)

◆ endElement() [2/2]

static void XMLCALL Slic3r::IO::AMFParserContext::endElement ( void *  userData,
const char *  name 
)
inlinestatic

◆ get_attribute()

static const char* Slic3r::IO::AMFParserContext::get_attribute ( const char **  atts,
const char *  id 
)
inlinestatic

◆ startElement() [1/2]

void Slic3r::IO::AMFParserContext::startElement ( const char *  name,
const char **  atts 
)

◆ startElement() [2/2]

static void XMLCALL Slic3r::IO::AMFParserContext::startElement ( void *  userData,
const char *  name,
const char **  atts 
)
inlinestatic

◆ stop()

void Slic3r::IO::AMFParserContext::stop ( )
inline

Member Data Documentation

◆ m_instance

Instance* Slic3r::IO::AMFParserContext::m_instance

◆ m_material

ModelMaterial* Slic3r::IO::AMFParserContext::m_material

◆ m_model

Model& Slic3r::IO::AMFParserContext::m_model

◆ m_object

ModelObject* Slic3r::IO::AMFParserContext::m_object

◆ m_object_instances_map

std::map<std::string, Object> Slic3r::IO::AMFParserContext::m_object_instances_map

◆ m_object_vertices

std::vector<float> Slic3r::IO::AMFParserContext::m_object_vertices

◆ m_parser

XML_Parser Slic3r::IO::AMFParserContext::m_parser

◆ m_path

std::vector<AMFNodeType> Slic3r::IO::AMFParserContext::m_path

◆ m_value

std::string Slic3r::IO::AMFParserContext::m_value[3]

◆ m_volume

ModelVolume* Slic3r::IO::AMFParserContext::m_volume

◆ m_volume_facets

std::vector<int> Slic3r::IO::AMFParserContext::m_volume_facets

The documentation for this struct was generated from the following file: