1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-20 11:54:07 +03:00
occt/src/StepVisual/StepVisual_ViewVolume.cxx
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

132 lines
3.7 KiB
C++

// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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_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;
}