Files
EgtGeomKernel/OutScl.h
T
Dario Sassi 01ce6ea4a4 EgtGeomKernel 1.5c5 :
- IGdbIterator può utilizzare un altro IGdbIterator per andare sul gruppo
- aggiunta gestione nomi di colori standard
- Aggiunte ToString e FromString per Color
- TSC ora accetta colori standard da nome.
2014-03-12 21:19:47 +00:00

64 lines
2.1 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2013-2013
//----------------------------------------------------------------------------
// File : OutScl.h Data : 25.11.13 Versione : 1.3a1
// Contenuto : Dichiarazione della classe output SCL.
//
//
//
// Modifiche : 31.12.12 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include <string>
#include <fstream>
class Point3d ;
class BBox3d ;
class Frame3d ;
class IGeoObj ;
class ICurve ;
class ICurveBezier ;
class CrvPointDiffGeom ;
//----------------------------------------------------------------------------
class OutScl
{
public :
OutScl( void) ;
~OutScl( void) ;
bool Open( const std::string& sOutScl) ;
bool Close( void) ;
bool Remark( const std::string& sRemark) ;
bool SetMaterial( double dRed, double dGreen, double dBlue) ;
bool SetPartLay( const std::string& sPart, const std::string& sLay) ;
bool SetPartLayRef( const std::string& sPart, const std::string& sLay, const Frame3d& frFrame) ;
bool PutCurrRef( void) ;
bool PutGeoObj( const IGeoObj* pGeoObj, int nFlag) ;
bool PutBBox( const BBox3d& b3B) ;
private :
bool Start( void) ;
bool End( void) ;
bool New( void) ;
bool SetMaterial( const std::string& sMaterial, double dRed, double dGreen, double dBlue) ;
bool Line2P( const Point3d& ptP1, const Point3d& ptP2) ;
bool Arc3P( const Point3d& ptP1, const Point3d& ptP2, const Point3d& ptP3) ;
bool ArcCPA( const Point3d& ptCen, const Point3d& ptMed, double dAngCenDeg) ;
bool CircleCR( const Point3d& ptCen, double dRad) ;
bool ArcCurvOrTgOrNone( const CrvPointDiffGeom& oDiffG) ;
bool NormalOrNone( const CrvPointDiffGeom& oDiffG) ;
bool PutCurve( const ICurve* pCurve, int nFlag) ;
bool PutPolygBez( const ICurveBezier& CrvBez) ;
private :
std::ofstream m_ofFile ;
std::string m_sMaterial ;
std::string m_sPartLay ;
} ;