コード例 #1
0
ファイル: OSGDXFLine.cpp プロジェクト: chengzg/OSGAddOnsGV
/*! Add ENTITY:LINE entity type to DXF hierarchy as child of SECTION:ENTITIES (see
 *  DXFEntities) and BLOCKSENTRY:BLOCK (see DXFBlock).
 */
DXFLine::DXFLine(void) :
    Inherited(),
    _startPoint(0.0, 0.0, 0.0),
    _endPoint(0.0, 0.0, 0.0)
{
    _entityTypeName    = "LINE";

    registerToParentEntityType("SECTION:ENTITIES");
    registerToParentEntityType("BLOCKSENTRY:BLOCK");
}
コード例 #2
0
/*! Add ENTITY:LWPolyline entity type to DXF hierarchy as child of
 *  SECTION:ENTITIES (see DXFEntities) and BLOCKSENTRY:BLOCK (see DXFBlock).
 */
DXFLWPolyline::DXFLWPolyline(void) :
     Inherited  (   ),
    _elevation  (0.0),
    _numVertices(0  ),
    _curVertice (   ),
    _plyVertices(   )
{
    _entityTypeName    = "LWPOLYLINE";

    registerToParentEntityType("SECTION:ENTITIES");
    registerToParentEntityType("BLOCKSENTRY:BLOCK");
}
コード例 #3
0
ファイル: OSGDXFSpline.cpp プロジェクト: chengzg/OSGAddOnsGV
/*! Add ENTITY:POLYLINE entity type to DXF hierarchy as child of
 *  SECTION:ENTITIES (see DXFEntities) and BLOCKSENTRY:BLOCK (see DXFBlock).
 */
DXFSpline::DXFSpline(void) :
    Inherited(),
    _elevation(0.0),
	_radius(0.0),
	_startAngle(0),
	_endAngle(0),
	_centerPoint(0.0, 0.0, 0.0)
{
    _entityTypeName    = "SPLINE";

    registerToParentEntityType("SECTION:ENTITIES");
    registerToParentEntityType("BLOCKSENTRY:BLOCK");
}
コード例 #4
0
ファイル: OSGDXFInsert.cpp プロジェクト: chengzg/OSGAddOnsGV
/*! Add ENTITY:INSERT entity to DXF hierarchy as child of SECTION:ENTITIES (see
 *  DXFEntities) and BLOCKSENTRY:BLOCK (see DXFBlock).
 */
DXFInsert::DXFInsert(void) :
    Inherited(),
    _insertionPoint(0.0, 0.0, 0.0),
    _scaleFactor(1.0, 1.0, 1.0),
    _rotationAngle(0.0),
    _columnCount(1),
    _rowCount(1),
    _columnSpacing(0.0),
    _rowSpacing(0.0)
{
    _entityTypeName  = "INSERT";

    registerToParentEntityType("SECTION:ENTITIES");
    registerToParentEntityType("BLOCKSENTRY:BLOCK");
}
コード例 #5
0
ファイル: OSGDXFEntities.cpp プロジェクト: mlimper/OpenSG1x
/*! Add SECTION:ENTITIES entity to DXF hierarchy as child of FILE:FILE (see
 *  DXFFile).
 */
DXFEntities::DXFEntities(void) :
    Inherited()
{
	_entityClassName = "SECTION";
	_entityTypeName  = "ENTITIES";

	registerToParentEntityType("FILE:FILE");
}
コード例 #6
0
ファイル: OSGDXFLtype.cpp プロジェクト: mlimper/OpenSG1x
/*! Add TABLEENTRY:LTYPE to DXF hierarchy as child of TABLE:LTYPE (See
 *  DXFTable<>).
 */
DXFLtype::DXFLtype(void) :
    Inherited(),
	_desc(),
	_nElements(0),
	_patternLen(0),
	_elementLen()
{
	_entityTypeName  = "LTYPE";

	registerToParentEntityType("TABLE:LTYPE");
}
コード例 #7
0
ファイル: OSGDXFBlocks.cpp プロジェクト: mlimper/OpenSG1x
 /*! Add SECTION:BLOCKS entity to DXF hierarchy as child of FILE:FILE (see
  *  DXFFile)
  */	
DXFBlocks::DXFBlocks(void) :
    Inherited()
{
	_entityClassName   = "SECTION";
	_entityTypeName    = "BLOCKS";

	_childBeginKeyword = "BLOCK";
	_childEndKeyword   = "ENDBLK";	

	registerToParentEntityType("FILE:FILE");
}
コード例 #8
0
ファイル: OSGDXFBlocks.cpp プロジェクト: mlimper/OpenSG1x
/*! Add BLOCKSENTRY:BLOCK entity to DXF hierarchy as child of SECTION:BLOCKS
 *  (see DXFBlocks).
 */
DXFBlock::DXFBlock(void) :
    Inherited(),
	_layerName(""),
	_blockName(""),
	_basePoint(0.0, 0.0, 0.0),
	_blockNodeP(NullFC)
{
	_entityClassName = "BLOCKSENTRY";
	_entityTypeName  = "BLOCK";

	registerToParentEntityType("SECTION:BLOCKS");
}