1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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:
Igor Khozhanov
2020-05-18 13:04:19 +03:00
committed by bugmaster
parent 8189cc72d0
commit 691711cd3e
33 changed files with 1565 additions and 41 deletions

View File

@@ -118,10 +118,18 @@ RWStepVisual_RWSurfaceStyleFillArea.cxx
RWStepVisual_RWSurfaceStyleFillArea.hxx
RWStepVisual_RWSurfaceStyleParameterLine.cxx
RWStepVisual_RWSurfaceStyleParameterLine.hxx
RWStepVisual_RWSurfaceStyleReflectanceAmbient.cxx
RWStepVisual_RWSurfaceStyleReflectanceAmbient.hxx
RWStepVisual_RWSurfaceStyleRendering.cxx
RWStepVisual_RWSurfaceStyleRendering.hxx
RWStepVisual_RWSurfaceStyleRenderingWithProperties.cxx
RWStepVisual_RWSurfaceStyleRenderingWithProperties.hxx
RWStepVisual_RWSurfaceStyleSegmentationCurve.cxx
RWStepVisual_RWSurfaceStyleSegmentationCurve.hxx
RWStepVisual_RWSurfaceStyleSilhouette.cxx
RWStepVisual_RWSurfaceStyleSilhouette.hxx
RWStepVisual_RWSurfaceStyleTransparent.cxx
RWStepVisual_RWSurfaceStyleTransparent.hxx
RWStepVisual_RWSurfaceStyleUsage.cxx
RWStepVisual_RWSurfaceStyleUsage.hxx
RWStepVisual_RWTemplate.cxx

View File

@@ -0,0 +1,78 @@
// 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 <RWStepVisual_RWSurfaceStyleReflectanceAmbient.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepData_StepReaderData.hxx>
#include <StepData_StepWriter.hxx>
#include <StepVisual_SurfaceStyleReflectanceAmbient.hxx>
#include <Standard_Real.hxx>
//=======================================================================
//function : RWStepVisual_RWSurfaceStyleReflectanceAmbient
//purpose :
//=======================================================================
RWStepVisual_RWSurfaceStyleReflectanceAmbient::RWStepVisual_RWSurfaceStyleReflectanceAmbient() {}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleReflectanceAmbient::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepVisual_SurfaceStyleReflectanceAmbient)& ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,1,ach,"surface_style_reflectance_ambient") ) return;
// Own fields of SurfaceStyleReflectanceAmbient
Standard_Real aAmbientReflectance;
data->ReadReal (num, 1, "ambient_reflectance", ach, aAmbientReflectance);
// Initialize entity
ent->Init(aAmbientReflectance);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleReflectanceAmbient::WriteStep (StepData_StepWriter& SW,
const Handle(StepVisual_SurfaceStyleReflectanceAmbient)& ent) const
{
// Own fields of SurfaceStyleReflectanceAmbient
SW.Send (ent->AmbientReflectance());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleReflectanceAmbient::Share (const Handle(StepVisual_SurfaceStyleReflectanceAmbient)& ,
Interface_EntityIterator& ) const
{
// Own fields of SurfaceStyleReflectanceAmbient
}

View File

@@ -0,0 +1,46 @@
// 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 _RWStepVisual_RWSurfaceStyleReflectanceAmbient_HeaderFile_
#define _RWStepVisual_RWSurfaceStyleReflectanceAmbient_HeaderFile_
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class StepData_StepReaderData;
class Interface_Check;
class StepData_StepWriter;
class Interface_EntityIterator;
class StepVisual_SurfaceStyleReflectanceAmbient;
//! Read & Write tool for SurfaceStyleReflectanceAmbient
class RWStepVisual_RWSurfaceStyleReflectanceAmbient
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT RWStepVisual_RWSurfaceStyleReflectanceAmbient();
Standard_EXPORT void ReadStep(const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepVisual_SurfaceStyleReflectanceAmbient)& ent) const;
Standard_EXPORT void WriteStep(StepData_StepWriter& SW, const Handle(StepVisual_SurfaceStyleReflectanceAmbient)& ent) const;
Standard_EXPORT void Share(const Handle(StepVisual_SurfaceStyleReflectanceAmbient)& ent, Interface_EntityIterator& iter) const;
};
#endif // _RWStepVisual_RWSurfaceStyleReflectanceAmbient_HeaderFile_

View File

@@ -0,0 +1,100 @@
// 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 <RWStepVisual_RWSurfaceStyleRendering.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepData_StepReaderData.hxx>
#include <StepData_StepWriter.hxx>
#include <StepVisual_SurfaceStyleRendering.hxx>
#include <StepVisual_ShadingSurfaceMethod.hxx>
#include <StepVisual_Colour.hxx>
//=======================================================================
//function : RWStepVisual_RWSurfaceStyleRendering
//purpose :
//=======================================================================
RWStepVisual_RWSurfaceStyleRendering::RWStepVisual_RWSurfaceStyleRendering() {}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleRendering::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepVisual_SurfaceStyleRendering)& ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,2,ach,"surface_style_rendering") ) return;
// Own fields of SurfaceStyleRendering
StepVisual_ShadingSurfaceMethod aRenderingMethod = StepVisual_ssmNormalShading;
if (data->ParamType (num, 1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 1);
if (strcmp(text, ".CONSTANT_SHADING.")) aRenderingMethod = StepVisual_ssmConstantShading;
else if (strcmp(text, ".COLOUR_SHADING.")) aRenderingMethod = StepVisual_ssmColourShading;
else if (strcmp(text, ".DOT_SHADING.")) aRenderingMethod = StepVisual_ssmDotShading;
else if (strcmp(text, ".NORMAL_SHADING.")) aRenderingMethod = StepVisual_ssmNormalShading;
else ach->AddFail("Parameter #1 (rendering_method) has not allowed value");
}
else ach->AddFail("Parameter #1 (rendering_method) is not enumeration");
Handle(StepVisual_Colour) aSurfaceColour;
data->ReadEntity (num, 2, "surface_colour", ach, STANDARD_TYPE(StepVisual_Colour), aSurfaceColour);
// Initialize entity
ent->Init(aRenderingMethod,
aSurfaceColour);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleRendering::WriteStep (StepData_StepWriter& SW,
const Handle(StepVisual_SurfaceStyleRendering)& ent) const
{
// Own fields of SurfaceStyleRendering
switch (ent->RenderingMethod()) {
case StepVisual_ssmConstantShading: SW.SendEnum (".CONSTANT_SHADING."); break;
case StepVisual_ssmColourShading: SW.SendEnum (".COLOUR_SHADING."); break;
case StepVisual_ssmDotShading: SW.SendEnum (".DOT_SHADING."); break;
case StepVisual_ssmNormalShading: SW.SendEnum (".NORMAL_SHADING."); break;
}
SW.Send (ent->SurfaceColour());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleRendering::Share (const Handle(StepVisual_SurfaceStyleRendering)& ent,
Interface_EntityIterator& iter) const
{
// Own fields of SurfaceStyleRendering
iter.AddItem (ent->SurfaceColour());
}

View File

@@ -0,0 +1,46 @@
// 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 _RWStepVisual_RWSurfaceStyleRendering_HeaderFile_
#define _RWStepVisual_RWSurfaceStyleRendering_HeaderFile_
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class StepData_StepReaderData;
class Interface_Check;
class StepData_StepWriter;
class Interface_EntityIterator;
class StepVisual_SurfaceStyleRendering;
//! Read & Write tool for SurfaceStyleRendering
class RWStepVisual_RWSurfaceStyleRendering
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT RWStepVisual_RWSurfaceStyleRendering();
Standard_EXPORT void ReadStep(const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepVisual_SurfaceStyleRendering)& ent) const;
Standard_EXPORT void WriteStep(StepData_StepWriter& SW, const Handle(StepVisual_SurfaceStyleRendering)& ent) const;
Standard_EXPORT void Share(const Handle(StepVisual_SurfaceStyleRendering)& ent, Interface_EntityIterator& iter) const;
};
#endif // _RWStepVisual_RWSurfaceStyleRendering_HeaderFile_

View File

@@ -0,0 +1,134 @@
// 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 <RWStepVisual_RWSurfaceStyleRenderingWithProperties.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepData_StepReaderData.hxx>
#include <StepData_StepWriter.hxx>
#include <StepVisual_SurfaceStyleRenderingWithProperties.hxx>
#include <StepVisual_ShadingSurfaceMethod.hxx>
#include <StepVisual_Colour.hxx>
#include <StepVisual_HArray1OfRenderingPropertiesSelect.hxx>
#include <StepVisual_RenderingPropertiesSelect.hxx>
//=======================================================================
//function : RWStepVisual_RWSurfaceStyleRenderingWithProperties
//purpose :
//=======================================================================
RWStepVisual_RWSurfaceStyleRenderingWithProperties::RWStepVisual_RWSurfaceStyleRenderingWithProperties() {}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleRenderingWithProperties::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepVisual_SurfaceStyleRenderingWithProperties)& ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,3,ach,"surface_style_rendering_with_properties") ) return;
// Inherited fields of SurfaceStyleRendering
StepVisual_ShadingSurfaceMethod aSurfaceStyleRendering_RenderingMethod = StepVisual_ssmNormalShading;
if (data->ParamType (num, 1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 1);
if (strcmp(text, ".CONSTANT_SHADING.")) aSurfaceStyleRendering_RenderingMethod = StepVisual_ssmConstantShading;
else if (strcmp(text, ".COLOUR_SHADING.")) aSurfaceStyleRendering_RenderingMethod = StepVisual_ssmColourShading;
else if (strcmp(text, ".DOT_SHADING.")) aSurfaceStyleRendering_RenderingMethod = StepVisual_ssmDotShading;
else if (strcmp(text, ".NORMAL_SHADING.")) aSurfaceStyleRendering_RenderingMethod = StepVisual_ssmNormalShading;
else ach->AddFail("Parameter #1 (surface_style_rendering.rendering_method) has not allowed value");
}
else ach->AddFail("Parameter #1 (surface_style_rendering.rendering_method) is not enumeration");
Handle(StepVisual_Colour) aSurfaceStyleRendering_SurfaceColour;
data->ReadEntity (num, 2, "surface_style_rendering.surface_colour", ach, STANDARD_TYPE(StepVisual_Colour), aSurfaceStyleRendering_SurfaceColour);
// Own fields of SurfaceStyleRenderingWithProperties
Handle(StepVisual_HArray1OfRenderingPropertiesSelect) aProperties;
Standard_Integer sub3 = 0;
if ( data->ReadSubList (num, 3, "properties", ach, sub3) ) {
Standard_Integer nb0 = data->NbParams(sub3);
aProperties = new StepVisual_HArray1OfRenderingPropertiesSelect (1, nb0);
Standard_Integer num2 = sub3;
for ( Standard_Integer i0=1; i0 <= nb0; i0++ ) {
StepVisual_RenderingPropertiesSelect anIt0;
data->ReadEntity (num2, i0, "rendering_properties_select", ach, anIt0);
aProperties->SetValue(i0, anIt0);
}
}
// Initialize entity
ent->Init(aSurfaceStyleRendering_RenderingMethod,
aSurfaceStyleRendering_SurfaceColour,
aProperties);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleRenderingWithProperties::WriteStep (StepData_StepWriter& SW,
const Handle(StepVisual_SurfaceStyleRenderingWithProperties)& ent) const
{
// Own fields of SurfaceStyleRendering
switch (ent->RenderingMethod()) {
case StepVisual_ssmConstantShading: SW.SendEnum (".CONSTANT_SHADING."); break;
case StepVisual_ssmColourShading: SW.SendEnum (".COLOUR_SHADING."); break;
case StepVisual_ssmDotShading: SW.SendEnum (".DOT_SHADING."); break;
case StepVisual_ssmNormalShading: SW.SendEnum (".NORMAL_SHADING."); break;
}
SW.Send (ent->SurfaceColour());
// Own fields of SurfaceStyleRenderingWithProperties
SW.OpenSub();
for (Standard_Integer i2=1; i2 <= ent->Properties()->Length(); i2++ ) {
StepVisual_RenderingPropertiesSelect Var0 = ent->Properties()->Value(i2);
SW.Send (Var0.Value());
}
SW.CloseSub();
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleRenderingWithProperties::Share (const Handle(StepVisual_SurfaceStyleRenderingWithProperties)& ent,
Interface_EntityIterator& iter) const
{
// Inherited fields of SurfaceStyleRendering
iter.AddItem (ent->StepVisual_SurfaceStyleRendering::SurfaceColour());
// Own fields of SurfaceStyleRenderingWithProperties
for (Standard_Integer i2=1; i2 <= ent->Properties()->Length(); i2++ ) {
StepVisual_RenderingPropertiesSelect Var0 = ent->Properties()->Value(i2);
iter.AddItem (Var0.Value());
}
}

View File

@@ -0,0 +1,46 @@
// 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 _RWStepVisual_RWSurfaceStyleRenderingWithProperties_HeaderFile_
#define _RWStepVisual_RWSurfaceStyleRenderingWithProperties_HeaderFile_
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class StepData_StepReaderData;
class Interface_Check;
class StepData_StepWriter;
class Interface_EntityIterator;
class StepVisual_SurfaceStyleRenderingWithProperties;
//! Read & Write tool for SurfaceStyleRenderingWithProperties
class RWStepVisual_RWSurfaceStyleRenderingWithProperties
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT RWStepVisual_RWSurfaceStyleRenderingWithProperties();
Standard_EXPORT void ReadStep(const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepVisual_SurfaceStyleRenderingWithProperties)& ent) const;
Standard_EXPORT void WriteStep(StepData_StepWriter& SW, const Handle(StepVisual_SurfaceStyleRenderingWithProperties)& ent) const;
Standard_EXPORT void Share(const Handle(StepVisual_SurfaceStyleRenderingWithProperties)& ent, Interface_EntityIterator& iter) const;
};
#endif // _RWStepVisual_RWSurfaceStyleRenderingWithProperties_HeaderFile_

View File

@@ -0,0 +1,79 @@
// 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 <RWStepVisual_RWSurfaceStyleTransparent.hxx>
#include <Interface_Check.hxx>
#include <Interface_EntityIterator.hxx>
#include <StepData_StepReaderData.hxx>
#include <StepData_StepWriter.hxx>
#include <StepVisual_SurfaceStyleTransparent.hxx>
#include <Standard_Real.hxx>
//=======================================================================
//function : RWStepVisual_RWSurfaceStyleTransparent
//purpose :
//=======================================================================
RWStepVisual_RWSurfaceStyleTransparent::RWStepVisual_RWSurfaceStyleTransparent() {}
//=======================================================================
//function : ReadStep
//purpose :
//=======================================================================
#include <iostream>
void RWStepVisual_RWSurfaceStyleTransparent::ReadStep (const Handle(StepData_StepReaderData)& data,
const Standard_Integer num,
Handle(Interface_Check)& ach,
const Handle(StepVisual_SurfaceStyleTransparent)& ent) const
{
// Check number of parameters
if ( ! data->CheckNbParams(num,1,ach,"surface_style_transparent") ) return;
// Own fields of SurfaceStyleTransparent
Standard_Real aTransparency;
data->ReadReal (num, 1, "transparency", ach, aTransparency);
// Initialize entity
ent->Init(aTransparency);
}
//=======================================================================
//function : WriteStep
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleTransparent::WriteStep (StepData_StepWriter& SW,
const Handle(StepVisual_SurfaceStyleTransparent)& ent) const
{
// Own fields of SurfaceStyleTransparent
SW.Send (ent->Transparency());
}
//=======================================================================
//function : Share
//purpose :
//=======================================================================
void RWStepVisual_RWSurfaceStyleTransparent::Share (const Handle(StepVisual_SurfaceStyleTransparent)& ,
Interface_EntityIterator& ) const
{
}

View File

@@ -0,0 +1,48 @@
// 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 _RWStepVisual_RWSurfaceStyleTransparent_HeaderFile_
#define _RWStepVisual_RWSurfaceStyleTransparent_HeaderFile_
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class StepData_StepReaderData;
class Interface_Check;
class StepData_StepWriter;
class Interface_EntityIterator;
class StepVisual_SurfaceStyleTransparent;
class Interface_EntityIterator;
//! Read & Write tool for SurfaceStyleTransparent
class RWStepVisual_RWSurfaceStyleTransparent
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT RWStepVisual_RWSurfaceStyleTransparent();
Standard_EXPORT void ReadStep(const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepVisual_SurfaceStyleTransparent)& ent) const;
Standard_EXPORT void WriteStep(StepData_StepWriter& SW, const Handle(StepVisual_SurfaceStyleTransparent)& ent) const;
Standard_EXPORT void Share(const Handle(StepVisual_SurfaceStyleTransparent)& ent, Interface_EntityIterator& iter) const;
};
#endif // _RWStepVisual_RWSurfaceStyleTransparent_HeaderFile_