mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-18 07:57:31 +08:00
136 lines
4.0 KiB
C++
Executable File
136 lines
4.0 KiB
C++
Executable File
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
//
|
|
// The content of this file is subject to the Open CASCADE Technology Public
|
|
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
// except in compliance with the License. Please obtain a copy of the License
|
|
// at http://www.opencascade.org and read it completely before using this file.
|
|
//
|
|
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
//
|
|
// The Original Code and all software distributed under the License is
|
|
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
// Initial Developer hereby disclaims all such warranties, including without
|
|
// limitation, any warranties of merchantability, fitness for a particular
|
|
// purpose or non-infringement. Please see the License for the specific terms
|
|
// and conditions governing the rights and limitations under the License.
|
|
|
|
#include <StepVisual_ViewVolume.ixx>
|
|
|
|
|
|
StepVisual_ViewVolume::StepVisual_ViewVolume () {}
|
|
|
|
void StepVisual_ViewVolume::Init(
|
|
const StepVisual_CentralOrParallel aProjectionType,
|
|
const Handle(StepGeom_CartesianPoint)& aProjectionPoint,
|
|
const Standard_Real aViewPlaneDistance,
|
|
const Standard_Real aFrontPlaneDistance,
|
|
const Standard_Boolean aFrontPlaneClipping,
|
|
const Standard_Real aBackPlaneDistance,
|
|
const Standard_Boolean aBackPlaneClipping,
|
|
const Standard_Boolean aViewVolumeSidesClipping,
|
|
const Handle(StepVisual_PlanarBox)& aViewWindow)
|
|
{
|
|
// --- classe own fields ---
|
|
projectionType = aProjectionType;
|
|
projectionPoint = aProjectionPoint;
|
|
viewPlaneDistance = aViewPlaneDistance;
|
|
frontPlaneDistance = aFrontPlaneDistance;
|
|
frontPlaneClipping = aFrontPlaneClipping;
|
|
backPlaneDistance = aBackPlaneDistance;
|
|
backPlaneClipping = aBackPlaneClipping;
|
|
viewVolumeSidesClipping = aViewVolumeSidesClipping;
|
|
viewWindow = aViewWindow;
|
|
}
|
|
|
|
|
|
void StepVisual_ViewVolume::SetProjectionType(const StepVisual_CentralOrParallel aProjectionType)
|
|
{
|
|
projectionType = aProjectionType;
|
|
}
|
|
|
|
StepVisual_CentralOrParallel StepVisual_ViewVolume::ProjectionType() const
|
|
{
|
|
return projectionType;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetProjectionPoint(const Handle(StepGeom_CartesianPoint)& aProjectionPoint)
|
|
{
|
|
projectionPoint = aProjectionPoint;
|
|
}
|
|
|
|
Handle(StepGeom_CartesianPoint) StepVisual_ViewVolume::ProjectionPoint() const
|
|
{
|
|
return projectionPoint;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetViewPlaneDistance(const Standard_Real aViewPlaneDistance)
|
|
{
|
|
viewPlaneDistance = aViewPlaneDistance;
|
|
}
|
|
|
|
Standard_Real StepVisual_ViewVolume::ViewPlaneDistance() const
|
|
{
|
|
return viewPlaneDistance;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetFrontPlaneDistance(const Standard_Real aFrontPlaneDistance)
|
|
{
|
|
frontPlaneDistance = aFrontPlaneDistance;
|
|
}
|
|
|
|
Standard_Real StepVisual_ViewVolume::FrontPlaneDistance() const
|
|
{
|
|
return frontPlaneDistance;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetFrontPlaneClipping(const Standard_Boolean aFrontPlaneClipping)
|
|
{
|
|
frontPlaneClipping = aFrontPlaneClipping;
|
|
}
|
|
|
|
Standard_Boolean StepVisual_ViewVolume::FrontPlaneClipping() const
|
|
{
|
|
return frontPlaneClipping;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetBackPlaneDistance(const Standard_Real aBackPlaneDistance)
|
|
{
|
|
backPlaneDistance = aBackPlaneDistance;
|
|
}
|
|
|
|
Standard_Real StepVisual_ViewVolume::BackPlaneDistance() const
|
|
{
|
|
return backPlaneDistance;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetBackPlaneClipping(const Standard_Boolean aBackPlaneClipping)
|
|
{
|
|
backPlaneClipping = aBackPlaneClipping;
|
|
}
|
|
|
|
Standard_Boolean StepVisual_ViewVolume::BackPlaneClipping() const
|
|
{
|
|
return backPlaneClipping;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetViewVolumeSidesClipping(const Standard_Boolean aViewVolumeSidesClipping)
|
|
{
|
|
viewVolumeSidesClipping = aViewVolumeSidesClipping;
|
|
}
|
|
|
|
Standard_Boolean StepVisual_ViewVolume::ViewVolumeSidesClipping() const
|
|
{
|
|
return viewVolumeSidesClipping;
|
|
}
|
|
|
|
void StepVisual_ViewVolume::SetViewWindow(const Handle(StepVisual_PlanarBox)& aViewWindow)
|
|
{
|
|
viewWindow = aViewWindow;
|
|
}
|
|
|
|
Handle(StepVisual_PlanarBox) StepVisual_ViewVolume::ViewWindow() const
|
|
{
|
|
return viewWindow;
|
|
}
|