Redundant const qualifiers of return types of functions returning values are removed
return myPlane;
}
-//=======================================================================
-//function : GetGeometryType
-//purpose :
-//=======================================================================
-const Standard_Integer AIS_Dimension::GetGeometryType () const
-{
- return myGeometryType;
-}
-
//=======================================================================
//function : SetUserPlane
//purpose :
//! Geometry type defines type of shapes on which the dimension is to be built.
//! @return type of geometry on which the dimension will be built.
- Standard_EXPORT const Standard_Integer GetGeometryType () const;
+ Standard_Integer GetGeometryType () const { return myGeometryType; }
//! Sets user-defined plane where the 2D dimension presentation will be placed.
//! Checks validity of this plane if geometry has been set already.
static Standard_Integer NbEDGES = 0;
#endif
-static const Standard_Real BRepFill_Confusion()
+static Standard_Real BRepFill_Confusion()
{
Standard_Real Tol = 1.e-6;
return Tol;
//purpose :
//=======================================================================
-const Standard_Integer BRepLib_FuseEdges::NbVertices()
+Standard_Integer BRepLib_FuseEdges::NbVertices()
{
Standard_NullObject_Raise_if(myShape.IsNull(),"FuseEdges : No Shape");
Standard_EXPORT TopoDS_Shape& Shape();
//! returns the number of vertices candidate to be removed
- Standard_EXPORT const Standard_Integer NbVertices();
+ Standard_EXPORT Standard_Integer NbVertices();
//! Using map of list of connex edges, fuse each list to
//! one edge and then update myShape
}
//! Returns index of point coinciding with regerence one.
- inline const Standard_Integer GetCoincidentPoint() const
+ inline Standard_Integer GetCoincidentPoint() const
{
if ( myResIndices.Size() > 0 )
{
//purpose :
//=======================================================================
-const Standard_CString DDF_IOStream::MagicNumber()
+Standard_CString DDF_IOStream::MagicNumber()
{ return MAGICNUMBER; }
//=======================================================================
// Methods PRIVATE
//
-static const Standard_CString MagicNumber() ;
+static Standard_CString MagicNumber() ;
// Fields PRIVATE
}
//! Gets horizontal offset.
- const Standard_Integer GetDx() const
+ Standard_Integer GetDx() const
{
return myDx;
}
//! Gets vertical offset.
- const Standard_Integer GetDy() const
+ Standard_Integer GetDy() const
{
return myDy;
}
//! Gets parameter of zoom.
- const Standard_Real GetZoom() const
+ Standard_Real GetZoom() const
{
return myZoom;
}
}
//! Gets focal distance.
- const Standard_Real GetFocalDistance() const
+ Standard_Real GetFocalDistance() const
{
return myFocalDistance;
}
}
//! Returns true value if current view in 2D mode.
- const Standard_Boolean Is2D() const
+ Standard_Boolean Is2D() const
{
return myIs2D;
}
//! Returns true value if current view in perspective mode.
- const Standard_Real IsPerspective() const
+ Standard_Real IsPerspective() const
{
return myIsPers;
}
//purpose : ------------------ PROTECTED
//=======================================================================
-const Standard_CString FSD_BinaryFile::MagicNumber()
+Standard_CString FSD_BinaryFile::MagicNumber()
{
return MAGICNUMBER;
}
//! write string at the current position.
Standard_EXPORT void WriteExtendedString (const TCollection_ExtendedString& buffer);
-
-
-
private:
-
- Standard_EXPORT void WriteHeader();
+ void WriteHeader();
- Standard_EXPORT void ReadHeader();
+ void ReadHeader();
- Standard_EXPORT static const Standard_CString MagicNumber();
+ static Standard_CString MagicNumber();
+private:
FSD_BStream myStream;
FSD_FileHeader myHeader;
-
-
};
-
-
-
-
-
-
#endif // _FSD_BinaryFile_HeaderFile
//purpose : ------------------ PROTECTED
//=======================================================================
-const Standard_CString FSD_CmpFile::MagicNumber()
+Standard_CString FSD_CmpFile::MagicNumber()
{
return MAGICNUMBER;
}
Standard_EXPORT Storage_Error FindTag (const Standard_CString aTag);
-
-
-
private:
-
- Standard_EXPORT static const Standard_CString MagicNumber();
+ static Standard_CString MagicNumber();
- Standard_EXPORT void RaiseError (const Handle(Standard_Type)& theFailure);
+ void RaiseError (const Handle(Standard_Type)& theFailure);
+private:
FSD_FStream myStream;
-
-
};
-
-
-
-
-
-
#endif // _FSD_CmpFile_HeaderFile
//purpose : ------------------ PROTECTED
//=======================================================================
-const Standard_CString FSD_File::MagicNumber()
+Standard_CString FSD_File::MagicNumber()
{
return MAGICNUMBER;
}
Standard_EXPORT Storage_Error FindTag (const Standard_CString aTag);
-
-
-
private:
-
- Standard_EXPORT static const Standard_CString MagicNumber();
+ static Standard_CString MagicNumber();
+private:
FSD_FStream myStream;
-
-
};
-
-
-
-
-
-
#endif // _FSD_File_HeaderFile
void SetName (const TCollection_ExtendedString& theName) { myName = theName; }
const TCollection_ExtendedString& Name() const { return myName; }
- const Standard_Boolean ToDrawName() const { return myToDrawName; }
+ Standard_Boolean ToDrawName() const { return myToDrawName; }
void SetDrawName (const Standard_Boolean theToDraw) { myToDrawName = theToDraw; }
- const Standard_Boolean ToDrawTickmarks() const { return myToDrawTickmarks; }
+ Standard_Boolean ToDrawTickmarks() const { return myToDrawTickmarks; }
void SetDrawTickmarks (const Standard_Boolean theToDraw) { myToDrawTickmarks = theToDraw; }
- const Standard_Boolean ToDrawValues() const { return myToDrawValues; }
+ Standard_Boolean ToDrawValues() const { return myToDrawValues; }
void SetDrawValues (const Standard_Boolean theToDraw) { myToDrawValues = theToDraw; }
const Quantity_Color& NameColor() const { return myNameColor; }
//! Sets color of axis and values
void SetColor (const Quantity_Color& theColor) { myColor = theColor; }
- const Standard_Integer TickmarksNumber() const { return myTickmarksNumber; }
+ Standard_Integer TickmarksNumber() const { return myTickmarksNumber; }
void SetTickmarksNumber (const Standard_Integer theValue) { myTickmarksNumber = theValue; }
- const Standard_Integer TickmarksLength() const { return myTickmarksLength; }
+ Standard_Integer TickmarksLength() const { return myTickmarksLength; }
void SetTickmarksLength (const Standard_Integer theValue) { myTickmarksLength = theValue; }
- const Standard_Integer ValuesOffset() const { return myValuesOffset; }
+ Standard_Integer ValuesOffset() const { return myValuesOffset; }
void SetValuesOffset (const Standard_Integer theValue) { myValuesOffset = theValue; }
- const Standard_Integer NameOffset() const { return myNameOffset; }
+ Standard_Integer NameOffset() const { return myNameOffset; }
void SetNameOffset (const Standard_Integer theValue) { myNameOffset = theValue; }
protected:
return myAxes (theIndex);
}
- const Standard_ShortReal ArrowsLength() const { return myArrowsLength; }
+ Standard_ShortReal ArrowsLength() const { return myArrowsLength; }
void SetArrowsLength (const Standard_ShortReal theValue) { myArrowsLength = theValue; }
const Quantity_Color& GridColor() const { return myGridColor; }
void SetGridColor (const Quantity_Color& theColor) {myGridColor = theColor; }
- const Standard_Boolean ToDrawGrid() const { return myToDrawGrid; }
+ Standard_Boolean ToDrawGrid() const { return myToDrawGrid; }
void SetDrawGrid (const Standard_Boolean theToDraw) { myToDrawGrid = theToDraw; }
- const Standard_Boolean ToDrawAxes() const { return myToDrawAxes; }
+ Standard_Boolean ToDrawAxes() const { return myToDrawAxes; }
void SetDrawAxes (const Standard_Boolean theToDraw) { myToDrawAxes = theToDraw; }
const TCollection_AsciiString& NamesFont() const { return myNamesFont; }
Font_FontAspect NamesFontAspect() const { return myNamesStyle; }
void SetNamesFontAspect (Font_FontAspect theAspect) { myNamesStyle = theAspect; }
- const Standard_Integer NamesSize() const { return myNamesSize; }
+ Standard_Integer NamesSize() const { return myNamesSize; }
void SetNamesSize (const Standard_Integer theValue) { myNamesSize = theValue; }
const TCollection_AsciiString& ValuesFont () const { return myValuesFont; }
Font_FontAspect ValuesFontAspect() const { return myValuesStyle; }
void SetValuesFontAspect (Font_FontAspect theAspect) { myValuesStyle = theAspect; }
- const Standard_Integer ValuesSize() const { return myValuesSize; }
+ Standard_Integer ValuesSize() const { return myValuesSize; }
void SetValuesSize (const Standard_Integer theValue) { myValuesSize = theValue; }
public:
{}
//! Returns true if theSetting is enabled.
- const Standard_Boolean IsSettingEnabled (const Graphic3d_ZLayerSetting theSetting) const
+ Standard_Boolean IsSettingEnabled (const Graphic3d_ZLayerSetting theSetting) const
{
return (Flags & theSetting) == theSetting;
}
//purpose :
//=======================================================================
-const Standard_CString IGESData_ParamReader::ParamValue
+Standard_CString IGESData_ParamReader::ParamValue
(const Standard_Integer num) const
{
return theparams->Value(num+thebase).CValue();
Standard_EXPORT Interface_ParamType ParamType (const Standard_Integer num) const;
//! returns litteral value of a parameter, as it was in file
- Standard_EXPORT const Standard_CString ParamValue (const Standard_Integer num) const;
+ Standard_EXPORT Standard_CString ParamValue (const Standard_Integer num) const;
//! says if a parameter is defined (not void)
//! See also DefinedElseSkip
AlignedSize(){}
AlignedSize(const Standard_Size theValue)
: myValue((theValue + Align - 1) & ~(Align - 1)) {}
- operator Standard_Size() {return myValue;}
- operator const Standard_Size() const {return myValue;}
+ operator Standard_Size() const {return myValue;}
};
//! A pointer aligned to a 4 byte boundary
AlignedPtr(){}
AlignedPtr(const Standard_Address theValue)
: myValue((Standard_Byte*)((Standard_Size)theValue & ~(Align - 1))) {}
- operator Standard_Address () {return myValue;}
- operator Standard_Address const () const {return myValue;}
- operator Standard_Byte* () {return myValue;}
- operator Standard_Byte* const () const {return myValue;}
+ operator Standard_Address () const {return myValue;}
+ operator Standard_Byte* () const {return myValue;}
AlignedPtr operator -(const AlignedSize theValue) const
{return myValue - theValue;}
AlignedPtr operator +(const AlignedSize theValue) const
}
//! @return interior style
- const Aspect_InteriorStyle InteriorStyle() const
+ Aspect_InteriorStyle InteriorStyle() const
{
return myInteriorStyle;
}
OpenGl_StateCounter* GetStateCounter() const { return &myStateCounter; }
//! Returns unique ID for primitive arrays.
- const Standard_Size GetNextPrimitiveArrayUID() const { return myUIDGenerator.Increment(); }
+ Standard_Size GetNextPrimitiveArrayUID() const { return myUIDGenerator.Increment(); }
protected:
}
//! Returns true if theSetting is enabled for the layer.
- const Standard_Boolean IsSettingEnabled (const Graphic3d_ZLayerSetting theSetting) const
+ Standard_Boolean IsSettingEnabled (const Graphic3d_ZLayerSetting theSetting) const
{
return myLayerSettings.IsSettingEnabled (theSetting);
}
const Handle(Graphic3d_BoundBuffer)& Bounds() const { return myBounds; }
//! Returns unique ID of primitive array.
- const Standard_Size GetUID() const { return myUID; }
+ Standard_Size GetUID() const { return myUID; }
//! Initialize indices, attributes and bounds with new data.
Standard_EXPORT void InitBuffers (const Handle(OpenGl_Context)& theContext,
}
//! Returns Id of associated primitive array.
- const Standard_Size AssociatedPArrayID() const
+ Standard_Size AssociatedPArrayID() const
{
return myArrayID;
}
void Set (const Graphic3d_TypeOfSurfaceDetail theDetail) { myDetail = theDetail; }
//! Returns surface detail.
- const Graphic3d_TypeOfSurfaceDetail Detail() const { return myDetail; }
+ Graphic3d_TypeOfSurfaceDetail Detail() const { return myDetail; }
private:
Standard_Boolean IsCulled() const { return myIsCulled; }
//! Checks if the structure should be included into BVH tree or not.
- const Standard_Boolean IsAlwaysRendered() const
+ Standard_Boolean IsAlwaysRendered() const
{
return IsInfinite
|| IsForHighlight
// function : HasMipmaps
// purpose :
// =======================================================================
-const Standard_Boolean OpenGl_Texture::HasMipmaps() const
+Standard_Boolean OpenGl_Texture::HasMipmaps() const
{
return myHasMipmaps;
}
const OpenGl_TextureFormat& theFormat);
//! @return true if texture was generated within mipmaps
- Standard_EXPORT const Standard_Boolean HasMipmaps() const;
+ Standard_EXPORT Standard_Boolean HasMipmaps() const;
//! @return assigned texture parameters (not necessary applied)
Standard_EXPORT const Handle(Graphic3d_TextureParams)& GetParams() const;
// function : IsMutable
// purpose :
// =======================================================================
-const Standard_Boolean PrsMgr_PresentableObject::IsMutable() const
+Standard_Boolean PrsMgr_PresentableObject::IsMutable() const
{
return myIsMutable;
}
//! Returns true if object has mutable nature (content or location are be changed regularly).
//! Mutable object will be managed in different way than static onces (another optimizations).
- Standard_EXPORT const Standard_Boolean IsMutable() const;
+ Standard_EXPORT Standard_Boolean IsMutable() const;
//! Makes theObject child of current object in scene hierarchy.
Standard_EXPORT virtual void AddChild (const Handle(PrsMgr_PresentableObject)& theObject);
Standard_EXPORT const PrsMgr_ListOfPresentableObjects& Children() const;
//! Returns true if object should have own presentations.
- Standard_EXPORT const Standard_Boolean HasOwnPresentations() const;
+ Standard_EXPORT Standard_Boolean HasOwnPresentations() const;
//! Returns parent of current object in scene hierarchy.
- Standard_EXPORT const PrsMgr_PresentableObjectPointer Parent() const;
+ Standard_EXPORT PrsMgr_PresentableObjectPointer Parent() const;
friend class PrsMgr_Presentation;
return myChildren;
}
-inline const Standard_Boolean PrsMgr_PresentableObject::HasOwnPresentations() const
+inline Standard_Boolean PrsMgr_PresentableObject::HasOwnPresentations() const
{
return myHasOwnPresentations;
}
-inline const PrsMgr_PresentableObjectPointer PrsMgr_PresentableObject::Parent() const
+inline PrsMgr_PresentableObjectPointer PrsMgr_PresentableObject::Parent() const
{
return myParent;
}
//purpose :
//=======================================================================
-const Standard_CString STEPConstruct_ExternRefs::FileName (const Standard_Integer num) const
+Standard_CString STEPConstruct_ExternRefs::FileName (const Standard_Integer num) const
{
Handle(StepBasic_DocumentFile) DocFile;
Handle(StepAP214_AppliedExternalIdentificationAssignment) AEIA;
//! Returns filename for numth extern reference
//! Returns Null if FileName is not defined or bad
- Standard_EXPORT const Standard_CString FileName (const Standard_Integer num) const;
+ Standard_EXPORT Standard_CString FileName (const Standard_Integer num) const;
//! Returns ProductDefinition to which numth extern reference
//! is associated.
}
// Returns size of internal arrays
- const Standard_Integer Size () const
+ Standard_Integer Size () const
{
return mynbpoints;
}
// function: GetSelectionState
// purpose : Returns status of selection
//==================================================
-const SelectMgr_StateOfSelection SelectMgr_Selection::GetSelectionState() const
+SelectMgr_StateOfSelection SelectMgr_Selection::GetSelectionState() const
{
return mySelectionState;
}
SelectMgr_TypeOfBVHUpdate BVHUpdateStatus() const;
//! Returns status of selection
- Standard_EXPORT const SelectMgr_StateOfSelection GetSelectionState() const;
+ Standard_EXPORT SelectMgr_StateOfSelection GetSelectionState() const;
//! Sets status of selection
Standard_EXPORT void SetSelectionState (const SelectMgr_StateOfSelection theState) const;
// ----------------------------------------------------------------------------
// ToExtString
// ----------------------------------------------------------------------------
-const Standard_ExtString TCollection_ExtendedString::ToExtString() const
+Standard_ExtString TCollection_ExtendedString::ToExtString() const
{
if(mystring) return mystring;
return NULL_EXTSTRING;
Standard_EXPORT TCollection_ExtendedString Token (const Standard_ExtString separators, const Standard_Integer whichone = 1) const;
//! Returns pointer to ExtString
- Standard_EXPORT const Standard_ExtString ToExtString() const;
+ Standard_EXPORT Standard_ExtString ToExtString() const;
//! Truncates <me> to <ahowmany> characters.
//! Example: me = "Hello Dolly" -> Trunc(3) -> me = "Hel"
return new TCollection_HExtendedString(myString.Token(separators,whichone));
}
-// ----------------------------------------------------------------------------
-// ToExtString
-// ----------------------------------------------------------------------------
-const Standard_ExtString TCollection_HExtendedString::ToExtString() const
-{
- return (myString.ToExtString());
-}
-
// ----------------------------------------------------------------------------
// Trunc
// ----------------------------------------------------------------------------
Standard_EXPORT Standard_Integer SearchFromEnd (const Handle(TCollection_HExtendedString)& what) const;
//! Returns pointer to ExtString
- Standard_EXPORT const Standard_ExtString ToExtString() const;
+ Standard_ExtString ToExtString() const
+ {
+ return myString.ToExtString();
+ }
//! Extracts <whichone> token from <me>.
//! By default, the <separators> is set to space and tabulation.
TNaming_MapOfNamedShape.hxx
TNaming_Name.cxx
TNaming_Name.hxx
-TNaming_Name.lxx
TNaming_NamedShape.cxx
TNaming_NamedShape.hxx
TNaming_NamedShape.lxx
Standard_EXPORT const TDF_Label& ContextLabel() const;
- const TopAbs_Orientation Orientation() const;
+ TopAbs_Orientation Orientation() const
+ {
+ return myOrientation;
+ }
Standard_EXPORT Standard_Boolean Solve (const TDF_Label& aLab, const TDF_LabelMap& Valid) const;
Standard_EXPORT void Paste (TNaming_Name& into, const Handle(TDF_RelocationTable)& RT) const;
-
-
-
-protected:
-
-
-
-
-
private:
-
-
-
TNaming_NameType myType;
TopAbs_ShapeEnum myShapeType;
TNaming_ListOfNamedShape myArgs;
TopoDS_Shape myShape;
TDF_Label myContextLabel;
TopAbs_Orientation myOrientation;
-
-
};
-
-#include <TNaming_Name.lxx>
-
-
-
-
-
#endif // _TNaming_Name_HeaderFile
+++ /dev/null
-// File: TNaming_Name.lxx
-// Copyright: Open CASCADE 2013
-// Created on: 2013-07-03
-// Created by: Sergey Zaritchny
-// Copyright (c) 1999-2013 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.
-
-//=======================================================================
-//function : Orientation
-//purpose : Get
-//=======================================================================
-
-inline const TopAbs_Orientation TNaming_Name::Orientation() const
-{
- return myOrientation;
-}
const t_flag TestTopOpeTools_Trace::Getflag(const Standard_Integer index)
{ return (t_flag)myflag.Value(index); }
-const tf_value TestTopOpeTools_Trace::Getfunc(const Standard_Integer index)
+tf_value TestTopOpeTools_Trace::Getfunc(const Standard_Integer index)
{ return myfunc.Value(index); }
-const te_ftyp TestTopOpeTools_Trace::Getftyp(const Standard_Integer index)
+te_ftyp TestTopOpeTools_Trace::Getftyp(const Standard_Integer index)
{
//JR/Hp :
Standard_Integer intenum = myftyp.Value(index);
// ==== Methods
const t_flag Getflag(const Standard_Integer index);
- const tf_value Getfunc(const Standard_Integer index);
- const te_ftyp Getftyp(const Standard_Integer index);
+ tf_value Getfunc(const Standard_Integer index);
+ te_ftyp Getftyp(const Standard_Integer index);
Standard_Integer Add(const t_flag flag,const tf_value func,const te_ftyp ftyp);
// ==== Fields
TopOpeBRepTool_PURGE.hxx
TopOpeBRepTool_PurgeInternalEdges.cxx
TopOpeBRepTool_PurgeInternalEdges.hxx
-TopOpeBRepTool_PurgeInternalEdges.lxx
TopOpeBRepTool_RegularizeS.cxx
TopOpeBRepTool_RegularizeW.cxx
TopOpeBRepTool_REGUS.cxx
//purpose :
//=======================================================================
-const Standard_Integer TopOpeBRepTool_FuseEdges::NbVertices()
+Standard_Integer TopOpeBRepTool_FuseEdges::NbVertices()
{
Standard_NullObject_Raise_if(myShape.IsNull(),"FuseEdges : No Shape");
Standard_EXPORT TopoDS_Shape& Shape();
//! returns the number of vertices candidate to be removed
- Standard_EXPORT const Standard_Integer NbVertices();
+ Standard_EXPORT Standard_Integer NbVertices();
//! Using map of list of connex edges, fuse each list to
//! one edge and then update myShape
//purpose :
//=======================================================================
-const Standard_Integer TopOpeBRepTool_PurgeInternalEdges::NbEdges() const
+Standard_Integer TopOpeBRepTool_PurgeInternalEdges::NbEdges() const
{
Standard_NullObject_Raise_if(myShape.IsNull(),"PurgeInternalEdges : No Shape");
Standard_EXPORT TopoDS_Shape& Shape();
//! returns the number of edges candidate to be removed
- Standard_EXPORT const Standard_Integer NbEdges() const;
+ Standard_EXPORT Standard_Integer NbEdges() const;
//! returns False if the list of internal edges has
//! not been extracted
- Standard_Boolean IsDone() const;
+ Standard_Boolean IsDone() const
+ {
+ return myIsDone;
+ }
//! Using the list of internal edge from each face,
//! rebuild myShape by removing thoses edges.
Standard_EXPORT void Perform();
-
-
-
protected:
-
-
TopTools_IndexedDataMapOfShapeListOfShape myMapEdgLstFac;
-
private:
-
//! Do the main job. Explore all the edges of myShape and
//! build a map with faces as a key and list of internal
//! edges(without connected faces) as value.
Standard_EXPORT void BuildList();
+private:
TopoDS_Shape myShape;
Standard_Boolean myIsDone;
TopTools_DataMapOfShapeListOfShape myMapFacLstEdg;
-
-
};
-
-#include <TopOpeBRepTool_PurgeInternalEdges.lxx>
-
-
-
-
-
#endif // _TopOpeBRepTool_PurgeInternalEdges_HeaderFile
+++ /dev/null
-// Copyright (c) 1998-1999 Matra Datavision
-// 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.
-
-inline Standard_Boolean TopOpeBRepTool_PurgeInternalEdges::IsDone() const
-{
- return myIsDone;
-}
-
-