mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-05 11:24:17 +03:00
77 lines
2.6 KiB
C++
77 lines
2.6 KiB
C++
// Created on: 2015-10-29
|
|
// Created by: Irina KRYLOVA
|
|
// Copyright (c) 2015 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.
|
|
|
|
#ifndef _StepVisual_AnnotationPlane_HeaderFile
|
|
#define _StepVisual_AnnotationPlane_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_Type.hxx>
|
|
|
|
#include <StepVisual_AnnotationOccurrence.hxx>
|
|
#include <StepVisual_HArray1OfAnnotationPlaneElement.hxx>
|
|
|
|
class StepVisual_AnnotationPlane;
|
|
DEFINE_STANDARD_HANDLE(StepVisual_AnnotationPlane, StepVisual_AnnotationOccurrence)
|
|
|
|
class StepVisual_AnnotationPlane : public StepVisual_AnnotationOccurrence
|
|
{
|
|
public:
|
|
|
|
//! Returns a AnnotationPlane
|
|
Standard_EXPORT StepVisual_AnnotationPlane();
|
|
|
|
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
|
const Handle(StepVisual_HArray1OfPresentationStyleAssignment)& theStyles,
|
|
const Handle(Standard_Transient)& theItem,
|
|
const Handle(StepVisual_HArray1OfAnnotationPlaneElement)& theElements);
|
|
|
|
//! Returns field Elements
|
|
inline Handle(StepVisual_HArray1OfAnnotationPlaneElement) Elements () const
|
|
{
|
|
return myElements;
|
|
}
|
|
|
|
//! Set field Elements
|
|
inline void SetElements (const Handle(StepVisual_HArray1OfAnnotationPlaneElement) &theElements)
|
|
{
|
|
myElements = theElements;
|
|
}
|
|
|
|
//! Returns number of Elements
|
|
inline Standard_Integer NbElements () const
|
|
{
|
|
return (myElements.IsNull() ? 0 : myElements->Length());
|
|
}
|
|
|
|
//! Returns Elements with the given number
|
|
inline StepVisual_AnnotationPlaneElement ElementsValue(const Standard_Integer theNum) const
|
|
{
|
|
return myElements->Value(theNum);
|
|
}
|
|
|
|
//! Sets Elements with given number
|
|
inline void SetElementsValue(const Standard_Integer theNum, const StepVisual_AnnotationPlaneElement& theItem)
|
|
{
|
|
myElements->SetValue (theNum, theItem);
|
|
}
|
|
|
|
DEFINE_STANDARD_RTTIEXT(StepVisual_AnnotationPlane,StepVisual_AnnotationOccurrence)
|
|
|
|
private:
|
|
|
|
Handle(StepVisual_HArray1OfAnnotationPlaneElement) myElements;
|
|
};
|
|
#endif // _StepVisual_AnnotationPlane_HeaderFile
|