geom/src/GEOMAlgo/GEOMAlgo_ShapeInfo.hxx

205 lines
4.6 KiB
C++

// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#ifndef _GEOMAlgo_ShapeInfo_HeaderFile
#define _GEOMAlgo_ShapeInfo_HeaderFile
#include <Standard.hxx>
#include <Standard_Macro.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <Standard_Integer.hxx>
#include <gp_Pnt.hxx>
#include <gp_Dir.hxx>
#include <gp_Ax3.hxx>
#include <Standard_Real.hxx>
#include <gp_Ax2.hxx>
#include <GEOMAlgo_KindOfShape.hxx>
#include <GEOMAlgo_KindOfName.hxx>
#include <GEOMAlgo_KindOfBounds.hxx>
#include <GEOMAlgo_KindOfClosed.hxx>
//=======================================================================
//class : GEOMAlgo_ShapeInfo
//purpose :
//=======================================================================
class GEOMAlgo_ShapeInfo
{
public:
Standard_EXPORT
GEOMAlgo_ShapeInfo();
Standard_EXPORT
virtual ~GEOMAlgo_ShapeInfo();
Standard_EXPORT
void Reset() ;
Standard_EXPORT
void SetType(const TopAbs_ShapeEnum aType) ;
Standard_EXPORT
TopAbs_ShapeEnum Type() const;
Standard_EXPORT
void SetNbSubShapes(const TopAbs_ShapeEnum aType,const Standard_Integer aNb) ;
Standard_EXPORT
Standard_Integer NbSubShapes(const TopAbs_ShapeEnum aType) const;
Standard_EXPORT
void SetKindOfShape(const GEOMAlgo_KindOfShape aT) ;
Standard_EXPORT
GEOMAlgo_KindOfShape KindOfShape() const;
Standard_EXPORT
void SetKindOfName(const GEOMAlgo_KindOfName aT) ;
Standard_EXPORT
GEOMAlgo_KindOfName KindOfName() const;
Standard_EXPORT
void SetKindOfBounds(const GEOMAlgo_KindOfBounds aT) ;
Standard_EXPORT
GEOMAlgo_KindOfBounds KindOfBounds() const;
Standard_EXPORT
void SetKindOfClosed(const GEOMAlgo_KindOfClosed aT) ;
Standard_EXPORT
GEOMAlgo_KindOfClosed KindOfClosed() const;
Standard_EXPORT
void SetLocation(const gp_Pnt& aP) ;
Standard_EXPORT
const gp_Pnt& Location() const;
Standard_EXPORT
void SetDirection(const gp_Dir& aD) ;
Standard_EXPORT
const gp_Dir& Direction() const;
Standard_EXPORT
void SetPosition(const gp_Ax2& aAx2) ;
Standard_EXPORT
void SetPosition(const gp_Ax3& aAx3) ;
Standard_EXPORT
const gp_Ax3& Position() const;
Standard_EXPORT
void SetPnt1(const gp_Pnt& aP) ;
Standard_EXPORT
const gp_Pnt& Pnt1() const;
Standard_EXPORT
void SetPnt2(const gp_Pnt& aP) ;
Standard_EXPORT
const gp_Pnt& Pnt2() const;
Standard_EXPORT
void SetRadius1(const Standard_Real aR) ;
Standard_EXPORT
Standard_Real Radius1() const;
Standard_EXPORT
void SetRadius2(const Standard_Real aR) ;
Standard_EXPORT
Standard_Real Radius2() const;
Standard_EXPORT
void SetLength(const Standard_Real aL) ;
Standard_EXPORT
Standard_Real Length() const;
Standard_EXPORT
void SetWidth(const Standard_Real aW) ;
Standard_EXPORT
Standard_Real Width() const;
Standard_EXPORT
void SetHeight(const Standard_Real aH) ;
Standard_EXPORT
Standard_Real Height() const;
Standard_EXPORT
void Dump() const;
protected:
Standard_EXPORT
void DumpVertex() const;
Standard_EXPORT
void DumpEdge() const;
Standard_EXPORT
void DumpWire() const;
Standard_EXPORT
void DumpFace() const;
Standard_EXPORT
void DumpShell() const;
Standard_EXPORT
void DumpSolid() const;
Standard_EXPORT
void DumpCompSolid() const;
Standard_EXPORT
void DumpCompound() const;
TopAbs_ShapeEnum myType;
Standard_Integer myNbSubShapes[9];
GEOMAlgo_KindOfShape myKindOfShape;
GEOMAlgo_KindOfName myKindOfName;
GEOMAlgo_KindOfBounds myKindOfBounds;
GEOMAlgo_KindOfClosed myKindOfClosed;
gp_Pnt myLocation;
gp_Dir myDirection;
gp_Ax3 myPosition;
Standard_Real myRadius1;
Standard_Real myRadius2;
Standard_Real myLength;
Standard_Real myWidth;
Standard_Real myHeight;
gp_Pnt myPnt1;
gp_Pnt myPnt2;
Standard_Integer myNbTypes;
};
#endif