mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0031550: Data Exchange, STEP Import - surface transparency is ignored (SURFACE_STYLE_TRANSPARENT)
Implemented reading and writing transparency to/from step files
This commit is contained in:
committed by
bugmaster
parent
8189cc72d0
commit
691711cd3e
@@ -32,6 +32,7 @@ StepVisual_Array1OfInvisibleItem.hxx
|
||||
StepVisual_Array1OfLayeredItem.hxx
|
||||
StepVisual_Array1OfPresentationStyleAssignment.hxx
|
||||
StepVisual_Array1OfPresentationStyleSelect.hxx
|
||||
StepVisual_Array1OfRenderingPropertiesSelect.hxx
|
||||
StepVisual_Array1OfStyleContextSelect.hxx
|
||||
StepVisual_Array1OfSurfaceStyleElementSelect.hxx
|
||||
StepVisual_Array1OfTextOrCharacter.hxx
|
||||
@@ -126,6 +127,7 @@ StepVisual_HArray1OfInvisibleItem.hxx
|
||||
StepVisual_HArray1OfLayeredItem.hxx
|
||||
StepVisual_HArray1OfPresentationStyleAssignment.hxx
|
||||
StepVisual_HArray1OfPresentationStyleSelect.hxx
|
||||
StepVisual_HArray1OfRenderingPropertiesSelect.hxx
|
||||
StepVisual_HArray1OfStyleContextSelect.hxx
|
||||
StepVisual_HArray1OfSurfaceStyleElementSelect.hxx
|
||||
StepVisual_HArray1OfTextOrCharacter.hxx
|
||||
@@ -193,6 +195,9 @@ StepVisual_PresentedItem.cxx
|
||||
StepVisual_PresentedItem.hxx
|
||||
StepVisual_PresentedItemRepresentation.cxx
|
||||
StepVisual_PresentedItemRepresentation.hxx
|
||||
StepVisual_RenderingPropertiesSelect.cxx
|
||||
StepVisual_RenderingPropertiesSelect.hxx
|
||||
StepVisual_ShadingSurfaceMethod.hxx
|
||||
StepVisual_StyleContextSelect.cxx
|
||||
StepVisual_StyleContextSelect.hxx
|
||||
StepVisual_StyledItem.cxx
|
||||
@@ -212,10 +217,18 @@ StepVisual_SurfaceStyleFillArea.cxx
|
||||
StepVisual_SurfaceStyleFillArea.hxx
|
||||
StepVisual_SurfaceStyleParameterLine.cxx
|
||||
StepVisual_SurfaceStyleParameterLine.hxx
|
||||
StepVisual_SurfaceStyleReflectanceAmbient.cxx
|
||||
StepVisual_SurfaceStyleReflectanceAmbient.hxx
|
||||
StepVisual_SurfaceStyleRendering.cxx
|
||||
StepVisual_SurfaceStyleRendering.hxx
|
||||
StepVisual_SurfaceStyleRenderingWithProperties.cxx
|
||||
StepVisual_SurfaceStyleRenderingWithProperties.hxx
|
||||
StepVisual_SurfaceStyleSegmentationCurve.cxx
|
||||
StepVisual_SurfaceStyleSegmentationCurve.hxx
|
||||
StepVisual_SurfaceStyleSilhouette.cxx
|
||||
StepVisual_SurfaceStyleSilhouette.hxx
|
||||
StepVisual_SurfaceStyleTransparent.cxx
|
||||
StepVisual_SurfaceStyleTransparent.hxx
|
||||
StepVisual_SurfaceStyleUsage.cxx
|
||||
StepVisual_SurfaceStyleUsage.hxx
|
||||
StepVisual_Template.cxx
|
||||
|
@@ -0,0 +1,26 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef StepVisual_Array1OfRenderingPropertiesSelect_HeaderFile
|
||||
#define StepVisual_Array1OfRenderingPropertiesSelect_HeaderFile
|
||||
|
||||
#include <StepVisual_RenderingPropertiesSelect.hxx>
|
||||
#include <NCollection_Array1.hxx>
|
||||
|
||||
typedef NCollection_Array1<StepVisual_RenderingPropertiesSelect> StepVisual_Array1OfRenderingPropertiesSelect;
|
||||
|
||||
|
||||
#endif
|
@@ -0,0 +1,27 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef StepVisual_HArray1OfRenderingPropertiesSelect_HeaderFile
|
||||
#define StepVisual_HArray1OfRenderingPropertiesSelect_HeaderFile
|
||||
|
||||
#include <StepVisual_RenderingPropertiesSelect.hxx>
|
||||
#include <StepVisual_Array1OfRenderingPropertiesSelect.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(StepVisual_HArray1OfRenderingPropertiesSelect, StepVisual_Array1OfRenderingPropertiesSelect)
|
||||
|
||||
|
||||
#endif
|
61
src/StepVisual/StepVisual_RenderingPropertiesSelect.cxx
Normal file
61
src/StepVisual/StepVisual_RenderingPropertiesSelect.cxx
Normal file
@@ -0,0 +1,61 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepVisual_RenderingPropertiesSelect.hxx>
|
||||
#include <StepVisual_SurfaceStyleReflectanceAmbient.hxx>
|
||||
#include <StepVisual_SurfaceStyleTransparent.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : StepVisual_RenderingPropertiesSelect
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepVisual_RenderingPropertiesSelect::StepVisual_RenderingPropertiesSelect ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : CaseNum
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer StepVisual_RenderingPropertiesSelect::CaseNum (const Handle(Standard_Transient)& ent) const
|
||||
{
|
||||
if (ent.IsNull()) return 0;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepVisual_SurfaceStyleReflectanceAmbient))) return 1;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepVisual_SurfaceStyleTransparent))) return 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SurfaceStyleReflectanceAmbient
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepVisual_SurfaceStyleReflectanceAmbient) StepVisual_RenderingPropertiesSelect::SurfaceStyleReflectanceAmbient () const
|
||||
{
|
||||
return Handle(StepVisual_SurfaceStyleReflectanceAmbient)::DownCast(Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SurfaceStyleTransparent
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepVisual_SurfaceStyleTransparent) StepVisual_RenderingPropertiesSelect::SurfaceStyleTransparent () const
|
||||
{
|
||||
return Handle(StepVisual_SurfaceStyleTransparent)::DownCast(Value());
|
||||
}
|
53
src/StepVisual/StepVisual_RenderingPropertiesSelect.hxx
Normal file
53
src/StepVisual/StepVisual_RenderingPropertiesSelect.hxx
Normal file
@@ -0,0 +1,53 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepVisual_RenderingPropertiesSelect_HeaderFile
|
||||
#define _StepVisual_RenderingPropertiesSelect_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
#include <StepData_SelectType.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
|
||||
class Standard_Transient;
|
||||
class StepVisual_SurfaceStyleReflectanceAmbient;
|
||||
class StepVisual_SurfaceStyleTransparent;
|
||||
|
||||
//! Representation of STEP SELECT type RenderingPropertiesSelect
|
||||
class StepVisual_RenderingPropertiesSelect : public StepData_SelectType
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Empty constructor
|
||||
Standard_EXPORT StepVisual_RenderingPropertiesSelect();
|
||||
|
||||
//! Recognizes a kind of RenderingPropertiesSelect select type
|
||||
//! -- 1 -> SurfaceStyleReflectanceAmbient
|
||||
//! -- 2 -> SurfaceStyleTransparent
|
||||
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
|
||||
|
||||
//! Returns Value as SurfaceStyleReflectanceAmbient (or Null if another type)
|
||||
Standard_EXPORT Handle(StepVisual_SurfaceStyleReflectanceAmbient) SurfaceStyleReflectanceAmbient() const;
|
||||
|
||||
//! Returns Value as SurfaceStyleTransparent (or Null if another type)
|
||||
Standard_EXPORT Handle(StepVisual_SurfaceStyleTransparent) SurfaceStyleTransparent() const;
|
||||
|
||||
};
|
||||
#endif // _StepVisual_RenderingPropertiesSelect_HeaderFile
|
27
src/StepVisual/StepVisual_ShadingSurfaceMethod.hxx
Normal file
27
src/StepVisual/StepVisual_ShadingSurfaceMethod.hxx
Normal file
@@ -0,0 +1,27 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepVisual_ShadingSurfaceMethod_HeaderFile
|
||||
#define _StepVisual_ShadingSurfaceMethod_HeaderFile
|
||||
|
||||
enum StepVisual_ShadingSurfaceMethod
|
||||
{
|
||||
StepVisual_ssmConstantShading,
|
||||
StepVisual_ssmColourShading,
|
||||
StepVisual_ssmDotShading,
|
||||
StepVisual_ssmNormalShading
|
||||
};
|
||||
#endif // _StepVisual_ShadingSurfaceMethod_HeaderFile
|
@@ -21,6 +21,7 @@
|
||||
#include <StepVisual_SurfaceStyleParameterLine.hxx>
|
||||
#include <StepVisual_SurfaceStyleSegmentationCurve.hxx>
|
||||
#include <StepVisual_SurfaceStyleSilhouette.hxx>
|
||||
#include <StepVisual_SurfaceStyleRendering.hxx>
|
||||
|
||||
StepVisual_SurfaceStyleElementSelect::StepVisual_SurfaceStyleElementSelect () { }
|
||||
|
||||
@@ -33,6 +34,7 @@ Standard_Integer StepVisual_SurfaceStyleElementSelect::CaseNum(const Handle(Stan
|
||||
// if (ent->IsKind(STANDARD_TYPE(StepVisual_SurfaceStyleSilhouette))) return 4;
|
||||
// if (ent->IsKind(STANDARD_TYPE(StepVisual_SurfaceStyleSegmentationCurve))) return 5;
|
||||
// if (ent->IsKind(STANDARD_TYPE(StepVisual_SurfaceStyleControlGrid))) return 6;
|
||||
if (ent->IsKind(STANDARD_TYPE(StepVisual_SurfaceStyleRendering))) return 7;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -50,3 +52,8 @@ Handle(StepVisual_SurfaceStyleParameterLine) StepVisual_SurfaceStyleElementSelec
|
||||
{
|
||||
return GetCasted(StepVisual_SurfaceStyleParameterLine,Value());
|
||||
}
|
||||
|
||||
Handle(StepVisual_SurfaceStyleRendering) StepVisual_SurfaceStyleElementSelect::SurfaceStyleRendering () const
|
||||
{
|
||||
return GetCasted(StepVisual_SurfaceStyleRendering,Value());
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ class Standard_Transient;
|
||||
class StepVisual_SurfaceStyleFillArea;
|
||||
class StepVisual_SurfaceStyleBoundary;
|
||||
class StepVisual_SurfaceStyleParameterLine;
|
||||
|
||||
class StepVisual_SurfaceStyleRendering;
|
||||
|
||||
|
||||
class StepVisual_SurfaceStyleElementSelect : public StepData_SelectType
|
||||
@@ -47,6 +47,7 @@ public:
|
||||
//! 4 -> SurfaceStyleSilhouette
|
||||
//! 5 -> SurfaceStyleSegmentationCurve
|
||||
//! 6 -> SurfaceStyleControlGrid
|
||||
//! 7 -> SurfaceStyleRendering
|
||||
//! 0 else
|
||||
Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const;
|
||||
|
||||
@@ -59,6 +60,8 @@ public:
|
||||
//! returns Value as a SurfaceStyleParameterLine (Null if another type)
|
||||
Standard_EXPORT Handle(StepVisual_SurfaceStyleParameterLine) SurfaceStyleParameterLine() const;
|
||||
|
||||
//! returns Value as a SurfaceStyleRendering (Null if another type)
|
||||
Standard_EXPORT Handle(StepVisual_SurfaceStyleRendering) SurfaceStyleRendering() const;
|
||||
|
||||
|
||||
|
||||
|
59
src/StepVisual/StepVisual_SurfaceStyleReflectanceAmbient.cxx
Normal file
59
src/StepVisual/StepVisual_SurfaceStyleReflectanceAmbient.cxx
Normal file
@@ -0,0 +1,59 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepVisual_SurfaceStyleReflectanceAmbient.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_SurfaceStyleReflectanceAmbient, Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
//function : StepVisual_SurfaceStyleReflectanceAmbient
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepVisual_SurfaceStyleReflectanceAmbient::StepVisual_SurfaceStyleReflectanceAmbient ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleReflectanceAmbient::Init (const Standard_Real theAmbientReflectance)
|
||||
{
|
||||
|
||||
myAmbientReflectance = theAmbientReflectance;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AmbientReflectance
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepVisual_SurfaceStyleReflectanceAmbient::AmbientReflectance () const
|
||||
{
|
||||
return myAmbientReflectance;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetAmbientReflectance
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleReflectanceAmbient::SetAmbientReflectance (const Standard_Real theAmbientReflectance)
|
||||
{
|
||||
myAmbientReflectance = theAmbientReflectance;
|
||||
}
|
49
src/StepVisual/StepVisual_SurfaceStyleReflectanceAmbient.hxx
Normal file
49
src/StepVisual/StepVisual_SurfaceStyleReflectanceAmbient.hxx
Normal file
@@ -0,0 +1,49 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepVisual_SurfaceStyleReflectanceAmbient_HeaderFile_
|
||||
#define _StepVisual_SurfaceStyleReflectanceAmbient_HeaderFile_
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
class StepVisual_SurfaceStyleReflectanceAmbient;
|
||||
DEFINE_STANDARD_HANDLE(StepVisual_SurfaceStyleReflectanceAmbient, Standard_Transient)
|
||||
|
||||
//! Representation of STEP entity SurfaceStyleReflectanceAmbient
|
||||
class StepVisual_SurfaceStyleReflectanceAmbient : public Standard_Transient
|
||||
{
|
||||
public :
|
||||
|
||||
//! default constructor
|
||||
Standard_EXPORT StepVisual_SurfaceStyleReflectanceAmbient();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init(const Standard_Real theAmbientReflectance);
|
||||
|
||||
//! Returns field AmbientReflectance
|
||||
Standard_EXPORT Standard_Real AmbientReflectance() const;
|
||||
//! Sets field AmbientReflectance
|
||||
Standard_EXPORT void SetAmbientReflectance (const Standard_Real theAmbientReflectance);
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StepVisual_SurfaceStyleReflectanceAmbient, Standard_Transient)
|
||||
|
||||
private:
|
||||
Standard_Real myAmbientReflectance;
|
||||
|
||||
};
|
||||
#endif // _StepVisual_SurfaceStyleReflectanceAmbient_HeaderFile_
|
82
src/StepVisual/StepVisual_SurfaceStyleRendering.cxx
Normal file
82
src/StepVisual/StepVisual_SurfaceStyleRendering.cxx
Normal file
@@ -0,0 +1,82 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepVisual_SurfaceStyleRendering.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_SurfaceStyleRendering, Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
//function : StepVisual_SurfaceStyleRendering
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepVisual_SurfaceStyleRendering::StepVisual_SurfaceStyleRendering ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleRendering::Init (const StepVisual_ShadingSurfaceMethod theRenderingMethod,
|
||||
const Handle(StepVisual_Colour)& theSurfaceColour)
|
||||
{
|
||||
|
||||
myRenderingMethod = theRenderingMethod;
|
||||
|
||||
mySurfaceColour = theSurfaceColour;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : RenderingMethod
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepVisual_ShadingSurfaceMethod StepVisual_SurfaceStyleRendering::RenderingMethod () const
|
||||
{
|
||||
return myRenderingMethod;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetRenderingMethod
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleRendering::SetRenderingMethod (const StepVisual_ShadingSurfaceMethod theRenderingMethod)
|
||||
{
|
||||
myRenderingMethod = theRenderingMethod;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SurfaceColour
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepVisual_Colour) StepVisual_SurfaceStyleRendering::SurfaceColour () const
|
||||
{
|
||||
return mySurfaceColour;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetSurfaceColour
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleRendering::SetSurfaceColour (const Handle(StepVisual_Colour)& theSurfaceColour)
|
||||
{
|
||||
mySurfaceColour = theSurfaceColour;
|
||||
}
|
59
src/StepVisual/StepVisual_SurfaceStyleRendering.hxx
Normal file
59
src/StepVisual/StepVisual_SurfaceStyleRendering.hxx
Normal file
@@ -0,0 +1,59 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepVisual_SurfaceStyleRendering_HeaderFile_
|
||||
#define _StepVisual_SurfaceStyleRendering_HeaderFile_
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
#include <StepVisual_ShadingSurfaceMethod.hxx>
|
||||
#include <StepVisual_Colour.hxx>
|
||||
|
||||
class StepVisual_SurfaceStyleRendering;
|
||||
DEFINE_STANDARD_HANDLE(StepVisual_SurfaceStyleRendering, Standard_Transient)
|
||||
|
||||
//! Representation of STEP entity SurfaceStyleRendering
|
||||
class StepVisual_SurfaceStyleRendering : public Standard_Transient
|
||||
{
|
||||
public :
|
||||
|
||||
//! default constructor
|
||||
Standard_EXPORT StepVisual_SurfaceStyleRendering();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init(const StepVisual_ShadingSurfaceMethod theRenderingMethod,
|
||||
const Handle(StepVisual_Colour)& theSurfaceColour);
|
||||
|
||||
//! Returns field RenderingMethod
|
||||
Standard_EXPORT StepVisual_ShadingSurfaceMethod RenderingMethod() const;
|
||||
//! Sets field RenderingMethod
|
||||
Standard_EXPORT void SetRenderingMethod (const StepVisual_ShadingSurfaceMethod theRenderingMethod);
|
||||
|
||||
//! Returns field SurfaceColour
|
||||
Standard_EXPORT Handle(StepVisual_Colour) SurfaceColour() const;
|
||||
//! Sets field SurfaceColour
|
||||
Standard_EXPORT void SetSurfaceColour (const Handle(StepVisual_Colour)& theSurfaceColour);
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StepVisual_SurfaceStyleRendering, Standard_Transient)
|
||||
|
||||
private:
|
||||
StepVisual_ShadingSurfaceMethod myRenderingMethod;
|
||||
Handle(StepVisual_Colour) mySurfaceColour;
|
||||
|
||||
};
|
||||
#endif // _StepVisual_SurfaceStyleRendering_HeaderFile_
|
@@ -0,0 +1,63 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepVisual_SurfaceStyleRenderingWithProperties.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_SurfaceStyleRenderingWithProperties, StepVisual_SurfaceStyleRendering)
|
||||
|
||||
//=======================================================================
|
||||
//function : StepVisual_SurfaceStyleRenderingWithProperties
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepVisual_SurfaceStyleRenderingWithProperties::StepVisual_SurfaceStyleRenderingWithProperties ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleRenderingWithProperties::Init (const StepVisual_ShadingSurfaceMethod theSurfaceStyleRendering_RenderingMethod,
|
||||
const Handle(StepVisual_Colour)& theSurfaceStyleRendering_SurfaceColour,
|
||||
const Handle(StepVisual_HArray1OfRenderingPropertiesSelect)& theProperties)
|
||||
{
|
||||
StepVisual_SurfaceStyleRendering::Init(theSurfaceStyleRendering_RenderingMethod,
|
||||
theSurfaceStyleRendering_SurfaceColour);
|
||||
|
||||
myProperties = theProperties;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Properties
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(StepVisual_HArray1OfRenderingPropertiesSelect) StepVisual_SurfaceStyleRenderingWithProperties::Properties () const
|
||||
{
|
||||
return myProperties;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetProperties
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleRenderingWithProperties::SetProperties (const Handle(StepVisual_HArray1OfRenderingPropertiesSelect)& theProperties)
|
||||
{
|
||||
myProperties = theProperties;
|
||||
}
|
@@ -0,0 +1,55 @@
|
||||
// Created on : Thu May 14 15:13:19 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepVisual_SurfaceStyleRenderingWithProperties_HeaderFile_
|
||||
#define _StepVisual_SurfaceStyleRenderingWithProperties_HeaderFile_
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StepVisual_SurfaceStyleRendering.hxx>
|
||||
|
||||
#include <StepVisual_ShadingSurfaceMethod.hxx>
|
||||
#include <StepVisual_Colour.hxx>
|
||||
#include <StepVisual_HArray1OfRenderingPropertiesSelect.hxx>
|
||||
|
||||
class StepVisual_SurfaceStyleRenderingWithProperties;
|
||||
DEFINE_STANDARD_HANDLE(StepVisual_SurfaceStyleRenderingWithProperties, StepVisual_SurfaceStyleRendering)
|
||||
|
||||
//! Representation of STEP entity SurfaceStyleRenderingWithProperties
|
||||
class StepVisual_SurfaceStyleRenderingWithProperties : public StepVisual_SurfaceStyleRendering
|
||||
{
|
||||
public :
|
||||
|
||||
//! default constructor
|
||||
Standard_EXPORT StepVisual_SurfaceStyleRenderingWithProperties();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init(const StepVisual_ShadingSurfaceMethod theSurfaceStyleRendering_RenderingMethod,
|
||||
const Handle(StepVisual_Colour)& theSurfaceStyleRendering_SurfaceColour,
|
||||
const Handle(StepVisual_HArray1OfRenderingPropertiesSelect)& theProperties);
|
||||
|
||||
//! Returns field Properties
|
||||
Standard_EXPORT Handle(StepVisual_HArray1OfRenderingPropertiesSelect) Properties() const;
|
||||
//! Sets field Properties
|
||||
Standard_EXPORT void SetProperties (const Handle(StepVisual_HArray1OfRenderingPropertiesSelect)& theProperties);
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StepVisual_SurfaceStyleRenderingWithProperties, StepVisual_SurfaceStyleRendering)
|
||||
|
||||
private:
|
||||
Handle(StepVisual_HArray1OfRenderingPropertiesSelect) myProperties;
|
||||
|
||||
};
|
||||
#endif // _StepVisual_SurfaceStyleRenderingWithProperties_HeaderFile_
|
59
src/StepVisual/StepVisual_SurfaceStyleTransparent.cxx
Normal file
59
src/StepVisual/StepVisual_SurfaceStyleTransparent.cxx
Normal file
@@ -0,0 +1,59 @@
|
||||
// Created on : Tue May 12 14:11:46 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <StepVisual_SurfaceStyleTransparent.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(StepVisual_SurfaceStyleTransparent, Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
//function : StepVisual_SurfaceStyleTransparent
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
StepVisual_SurfaceStyleTransparent::StepVisual_SurfaceStyleTransparent ()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleTransparent::Init (const Standard_Real theTransparency)
|
||||
{
|
||||
|
||||
myTransparency = theTransparency;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Transparency
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Real StepVisual_SurfaceStyleTransparent::Transparency () const
|
||||
{
|
||||
return myTransparency;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetTransparency
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void StepVisual_SurfaceStyleTransparent::SetTransparency (const Standard_Real theTransparency)
|
||||
{
|
||||
myTransparency = theTransparency;
|
||||
}
|
49
src/StepVisual/StepVisual_SurfaceStyleTransparent.hxx
Normal file
49
src/StepVisual/StepVisual_SurfaceStyleTransparent.hxx
Normal file
@@ -0,0 +1,49 @@
|
||||
// Created on : Tue May 12 14:11:46 2020
|
||||
// Created by: Igor KHOZHANOV
|
||||
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
|
||||
// Copyright (c) Open CASCADE 2020
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _StepVisual_SurfaceStyleTransparent_HeaderFile_
|
||||
#define _StepVisual_SurfaceStyleTransparent_HeaderFile_
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
class StepVisual_SurfaceStyleTransparent;
|
||||
DEFINE_STANDARD_HANDLE(StepVisual_SurfaceStyleTransparent, Standard_Transient)
|
||||
|
||||
//! Representation of STEP entity SurfaceStyleTransparent
|
||||
class StepVisual_SurfaceStyleTransparent : public Standard_Transient
|
||||
{
|
||||
public :
|
||||
|
||||
//! default constructor
|
||||
Standard_EXPORT StepVisual_SurfaceStyleTransparent();
|
||||
|
||||
//! Initialize all fields (own and inherited)
|
||||
Standard_EXPORT void Init(const Standard_Real theTransparency);
|
||||
|
||||
//! Returns field Transparency
|
||||
Standard_EXPORT Standard_Real Transparency() const;
|
||||
//! Sets field Transparency
|
||||
Standard_EXPORT void SetTransparency (const Standard_Real theTransparency);
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(StepVisual_SurfaceStyleTransparent, Standard_Transient)
|
||||
|
||||
private:
|
||||
Standard_Real myTransparency;
|
||||
|
||||
};
|
||||
#endif // _StepVisual_SurfaceStyleTransparent_HeaderFile_
|
Reference in New Issue
Block a user