mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
54
src/IGESBasic/IGESBasic_SingularSubfigure.cxx
Executable file
54
src/IGESBasic/IGESBasic_SingularSubfigure.cxx
Executable file
@@ -0,0 +1,54 @@
|
||||
//--------------------------------------------------------------------
|
||||
//
|
||||
// File Name : IGESBasic_SingularSubfigure.cxx
|
||||
// Date :
|
||||
// Author : CKY / Contract Toubro-Larsen
|
||||
// Copyright : MATRA-DATAVISION 1993
|
||||
//
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESBasic_SingularSubfigure.ixx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
|
||||
|
||||
IGESBasic_SingularSubfigure::IGESBasic_SingularSubfigure () { }
|
||||
|
||||
|
||||
void IGESBasic_SingularSubfigure::Init
|
||||
(const Handle(IGESBasic_SubfigureDef)& aSubfigureDef,
|
||||
const gp_XYZ& aTranslation, const Standard_Boolean hasScale,
|
||||
const Standard_Real aScale)
|
||||
{
|
||||
theSubfigureDef = aSubfigureDef;
|
||||
theTranslation = aTranslation;
|
||||
hasScaleFactor = hasScale;
|
||||
theScaleFactor = aScale;
|
||||
InitTypeAndForm(408,0);
|
||||
}
|
||||
|
||||
Handle(IGESBasic_SubfigureDef) IGESBasic_SingularSubfigure::Subfigure () const
|
||||
{
|
||||
return theSubfigureDef;
|
||||
}
|
||||
|
||||
gp_XYZ IGESBasic_SingularSubfigure::Translation () const
|
||||
{
|
||||
return theTranslation;
|
||||
}
|
||||
|
||||
Standard_Boolean IGESBasic_SingularSubfigure::HasScaleFactor () const
|
||||
{
|
||||
return hasScaleFactor;
|
||||
}
|
||||
|
||||
Standard_Real IGESBasic_SingularSubfigure::ScaleFactor () const
|
||||
{
|
||||
return theScaleFactor;
|
||||
}
|
||||
|
||||
gp_XYZ IGESBasic_SingularSubfigure::TransformedTranslation () const
|
||||
{
|
||||
gp_XYZ tmp = theTranslation;
|
||||
if (HasTransf()) Location().Transforms(tmp);
|
||||
return tmp;
|
||||
}
|
Reference in New Issue
Block a user