mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-10 16:32:33 +08:00
Coding - Apply more flags from Clang-tidy (#977)
- Refactor boolean expressions and improve code readability across multiple files - Simplified boolean expressions by removing unnecessary comparisons to true/false. - Replaced explicit boolean checks with direct variable usage Used flags: readability-static-accessed-through-instance readability-simplify-boolean-expr performance-for-range-copy performance-move-const-arg misc-unused-parameters misc-redundant-expression
This commit is contained in:
@@ -36,7 +36,6 @@ D3DHost_FrameBuffer::D3DHost_FrameBuffer()
|
||||
myD3dFallback(false),
|
||||
myIsSRGBReady(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -29,15 +29,11 @@ IMPLEMENT_STANDARD_RTTIEXT(D3DHost_GraphicDriver, OpenGl_GraphicDriver)
|
||||
D3DHost_GraphicDriver::D3DHost_GraphicDriver()
|
||||
: OpenGl_GraphicDriver(occ::handle<Aspect_DisplayConnection>(), true)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
D3DHost_GraphicDriver::~D3DHost_GraphicDriver()
|
||||
{
|
||||
//
|
||||
}
|
||||
D3DHost_GraphicDriver::~D3DHost_GraphicDriver() {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -45,15 +45,11 @@ IVtkOCC_SelectableObject::IVtkOCC_SelectableObject(const IVtkOCC_Shape::Handle&
|
||||
IVtkOCC_SelectableObject::IVtkOCC_SelectableObject()
|
||||
: SelectMgr_SelectableObject(PrsMgr_TOP_AllView)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
IVtkOCC_SelectableObject::~IVtkOCC_SelectableObject()
|
||||
{
|
||||
//
|
||||
}
|
||||
IVtkOCC_SelectableObject::~IVtkOCC_SelectableObject() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -39,17 +39,11 @@ IMPLEMENT_STANDARD_RTTIEXT(IVtkOCC_ShapeMesher, IVtk_IShapeMesher)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
IVtkOCC_ShapeMesher::IVtkOCC_ShapeMesher()
|
||||
{
|
||||
//
|
||||
}
|
||||
IVtkOCC_ShapeMesher::IVtkOCC_ShapeMesher() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
IVtkOCC_ShapeMesher::~IVtkOCC_ShapeMesher()
|
||||
{
|
||||
//
|
||||
}
|
||||
IVtkOCC_ShapeMesher::~IVtkOCC_ShapeMesher() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -49,10 +49,7 @@ vtkStandardNewMacro(IVtkTools_ShapeDataSource)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
IVtkTools_ShapeDataSource::~IVtkTools_ShapeDataSource()
|
||||
{
|
||||
//
|
||||
}
|
||||
IVtkTools_ShapeDataSource::~IVtkTools_ShapeDataSource() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -116,7 +116,6 @@ vtkStandardNewMacro(IVtkTools_SubPolyDataFilter)
|
||||
myDoFiltering(true),
|
||||
myToCopyNormals(true)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -102,7 +102,6 @@ MeshVS_CommonSensitiveEntity::MeshVS_CommonSensitiveEntity(
|
||||
myCOG(theOther.myCOG),
|
||||
myBndBox(theOther.myBndBox)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -263,7 +263,7 @@ void MeshVS_ElementalColorPrsBuilder::Build(const occ::handle<Prs3d_Presentation
|
||||
aMaterial[1]);
|
||||
aGGroup = Prs->NewGroup();
|
||||
aLGroup = Prs->NewGroup();
|
||||
aGGroup->SetClosed(toSupressBackFaces == true);
|
||||
aGGroup->SetClosed(toSupressBackFaces);
|
||||
aGGroup->SetGroupPrimitivesAspect(aGroupFillAspect);
|
||||
}
|
||||
|
||||
@@ -494,7 +494,7 @@ void MeshVS_ElementalColorPrsBuilder::Build(const occ::handle<Prs3d_Presentation
|
||||
{
|
||||
aGGroup->SetPrimitivesAspect(aFillAspect);
|
||||
aGGroup->AddPrimitiveArray(aFaceTriangles);
|
||||
aGGroup->SetClosed(toSupressBackFaces == true);
|
||||
aGGroup->SetClosed(toSupressBackFaces);
|
||||
|
||||
if (anEdgeOn)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,6 @@ MeshVS_MeshEntityOwner::MeshVS_MeshEntityOwner(const SelectMgr_SelectableObject*
|
||||
myID(ID),
|
||||
myIsGroup(IsGroup)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -1083,7 +1083,7 @@ void MeshVS_MeshPrsBuilder::DrawArrays(
|
||||
if (IsPolygons && theFillAsp->FrontMaterial().Transparency() < 0.01)
|
||||
{
|
||||
occ::handle<Graphic3d_Group> aGroup = Prs->NewGroup();
|
||||
aGroup->SetClosed(isSupressBackFaces == true);
|
||||
aGroup->SetClosed(isSupressBackFaces);
|
||||
occ::handle<Graphic3d_AspectFillArea3d> aFillAsp = new Graphic3d_AspectFillArea3d(*theFillAsp);
|
||||
// if ( IsPolygonsEdgesOff )
|
||||
aFillAsp->SetEdgeOff();
|
||||
@@ -1135,7 +1135,7 @@ void MeshVS_MeshPrsBuilder::DrawArrays(
|
||||
if (IsPolygons && theFillAsp->FrontMaterial().Transparency() >= 0.01)
|
||||
{
|
||||
occ::handle<Graphic3d_Group> aGroup = Prs->NewGroup();
|
||||
aGroup->SetClosed(isSupressBackFaces == true);
|
||||
aGroup->SetClosed(isSupressBackFaces);
|
||||
occ::handle<Graphic3d_AspectFillArea3d> aFillAsp = new Graphic3d_AspectFillArea3d(*theFillAsp);
|
||||
// if ( IsPolygonsEdgesOff )
|
||||
aFillAsp->SetEdgeOff();
|
||||
|
||||
@@ -486,7 +486,7 @@ void MeshVS_NodalColorPrsBuilder::Build(const occ::handle<Prs3d_Presentation>& P
|
||||
|
||||
bool toSupressBackFaces = false;
|
||||
aDrawer->GetBoolean(MeshVS_DA_SupressBackFaces, toSupressBackFaces);
|
||||
aGroup1->SetClosed(toSupressBackFaces == true);
|
||||
aGroup1->SetClosed(toSupressBackFaces);
|
||||
|
||||
aGroup1->SetPrimitivesAspect(anAsp);
|
||||
aGroup1->AddPrimitiveArray(aFaceTriangles /*aCPolyArr*/);
|
||||
|
||||
@@ -97,7 +97,6 @@ OpenGl_Buffer::OpenGl_Buffer()
|
||||
myElemsNb(0),
|
||||
myDataType(GL_FLOAT)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Executable → Regular
+1
-4
@@ -90,7 +90,4 @@ OpenGl_Caps& OpenGl_Caps::operator=(const OpenGl_Caps& theCopy)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_Caps::~OpenGl_Caps()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_Caps::~OpenGl_Caps() = default;
|
||||
|
||||
@@ -2861,10 +2861,7 @@ void OpenGl_Context::ApplyProjectionMatrix()
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void OpenGl_Context::EnableFeatures() const
|
||||
{
|
||||
//
|
||||
}
|
||||
void OpenGl_Context::EnableFeatures() const {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
Executable → Regular
+3
-12
@@ -20,17 +20,11 @@
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_Element::OpenGl_Element()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_Element::OpenGl_Element() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_Element::~OpenGl_Element()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_Element::~OpenGl_Element() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -41,10 +35,7 @@ void OpenGl_Element::UpdateMemStats(Graphic3d_FrameStatsDataTmp& theStats) const
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void OpenGl_Element::UpdateDrawStats(Graphic3d_FrameStatsDataTmp&, bool) const
|
||||
{
|
||||
//
|
||||
}
|
||||
void OpenGl_Element::UpdateDrawStats(Graphic3d_FrameStatsDataTmp&, bool) const {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -42,15 +42,11 @@ OpenGl_Flipper::OpenGl_Flipper(const gp_Ax2& theReferenceSystem)
|
||||
1.0f),
|
||||
myIsEnabled(true)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void OpenGl_Flipper::Release(OpenGl_Context*)
|
||||
{
|
||||
//
|
||||
}
|
||||
void OpenGl_Flipper::Release(OpenGl_Context*) {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -32,17 +32,11 @@ static size_t estimatedDataSize(const occ::handle<OpenGl_Resource>& theRes)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_FrameStats::OpenGl_FrameStats()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_FrameStats::OpenGl_FrameStats() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_FrameStats::~OpenGl_FrameStats()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_FrameStats::~OpenGl_FrameStats() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -54,15 +54,11 @@ OpenGl_FrameStatsPrs::OpenGl_FrameStatsPrs()
|
||||
myChartIndices(new OpenGl_IndexBuffer()),
|
||||
myChartLines(new OpenGl_VertexBuffer())
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_FrameStatsPrs::~OpenGl_FrameStatsPrs()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_FrameStatsPrs::~OpenGl_FrameStatsPrs() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -1767,7 +1767,7 @@ void OpenGl_GlFunctions::load(OpenGl_Context& theCtx, bool theIsCoreProfile)
|
||||
bool isCoreProfile = false;
|
||||
if (theCtx.GraphicsLibrary() == Aspect_GraphicsLibrary_OpenGL && theCtx.IsGlGreaterEqual(3, 2))
|
||||
{
|
||||
isCoreProfile = (theIsCoreProfile == true);
|
||||
isCoreProfile = (theIsCoreProfile);
|
||||
|
||||
// detect Core profile
|
||||
if (!isCoreProfile)
|
||||
|
||||
@@ -41,7 +41,6 @@ OpenGl_GraduatedTrihedron::OpenGl_GraduatedTrihedron()
|
||||
myMax(100.0f, 100.0f, 100.0f),
|
||||
myIsInitialized(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -54,10 +53,7 @@ void OpenGl_GraduatedTrihedron::SetValues(const Graphic3d_GraduatedTrihedron& th
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_GraduatedTrihedron::~OpenGl_GraduatedTrihedron()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_GraduatedTrihedron::~OpenGl_GraduatedTrihedron() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -725,10 +721,7 @@ OpenGl_GraduatedTrihedron::Axis::Axis(const Graphic3d_GraduatedTrihedron::AxisAs
|
||||
// method : OpenGl_GraduatedTrihedron::Axis::~Axis
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
OpenGl_GraduatedTrihedron::Axis::~Axis()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_GraduatedTrihedron::Axis::~Axis() = default;
|
||||
|
||||
// =======================================================================
|
||||
// method : OpenGl_GraduatedTrihedron::Axis operator=
|
||||
|
||||
@@ -29,7 +29,6 @@ OpenGl_GraphicDriverFactory::OpenGl_GraphicDriverFactory()
|
||||
: Graphic3d_GraphicDriverFactory(OpenGl_DRIVER_NAME),
|
||||
myDefaultCaps(new OpenGl_Caps())
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -171,7 +171,6 @@ OpenGl_LayerList::OpenGl_LayerList()
|
||||
myImmediateNbStructures(0),
|
||||
myModifStateOfRaytraceable(0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -22,10 +22,7 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_LineAttributes, OpenGl_Resource)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_LineAttributes::OpenGl_LineAttributes()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_LineAttributes::OpenGl_LineAttributes() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -54,11 +54,11 @@ private:
|
||||
|
||||
GLboolean aStatus = GL_TRUE;
|
||||
myContext->core11fwd->glGetBooleanv(GL_DEPTH_TEST, &aStatus);
|
||||
myDepthTestWasEnabled = aStatus ? true : false;
|
||||
myDepthTestWasEnabled = aStatus != 0;
|
||||
myContext->core11fwd->glGetBooleanv(GL_DEPTH_WRITEMASK, &aStatus);
|
||||
myDepthWrirtingWasEnablig = aStatus ? true : false;
|
||||
myDepthWrirtingWasEnablig = aStatus != 0;
|
||||
myContext->core11fwd->glGetBooleanv(GL_SCISSOR_TEST, &aStatus);
|
||||
myScissorTestWasEnabled = aStatus ? true : false;
|
||||
myScissorTestWasEnabled = aStatus != 0;
|
||||
myContext->core11fwd->glGetIntegerv(GL_SCISSOR_BOX, myScissorBox);
|
||||
}
|
||||
|
||||
|
||||
@@ -750,10 +750,7 @@ OpenGl_PrimitiveArray::OpenGl_PrimitiveArray(const OpenGl_GraphicDriver*
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_PrimitiveArray::~OpenGl_PrimitiveArray()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_PrimitiveArray::~OpenGl_PrimitiveArray() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ OpenGl_RaytraceLight::OpenGl_RaytraceLight(const BVH_Vec4f& theEmission,
|
||||
: Emission(theEmission),
|
||||
Position(thePosition)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
@@ -143,7 +142,6 @@ OpenGl_TriangleSet::OpenGl_TriangleSet(const size_t
|
||||
: BVH_Triangulation<float, 3>(theBuilder),
|
||||
myArrayID(theArrayID)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
|
||||
@@ -76,7 +76,6 @@ OpenGl_ShaderObject::OpenGl_ShaderObject(GLenum theType)
|
||||
: myType(theType),
|
||||
myShaderID(NO_SHADER)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
OpenGl_StateInterface::OpenGl_StateInterface()
|
||||
: myIndex(0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
@@ -30,7 +29,6 @@ OpenGl_StateInterface::OpenGl_StateInterface()
|
||||
OpenGl_ProjectionState::OpenGl_ProjectionState()
|
||||
: myInverseNeedUpdate(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
@@ -64,7 +62,6 @@ const NCollection_Mat4<float>& OpenGl_ProjectionState::ProjectionMatrixInverse()
|
||||
OpenGl_ModelWorldState::OpenGl_ModelWorldState()
|
||||
: myInverseNeedUpdate(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
@@ -98,7 +95,6 @@ const NCollection_Mat4<float>& OpenGl_ModelWorldState::ModelWorldMatrixInverse()
|
||||
OpenGl_WorldViewState::OpenGl_WorldViewState()
|
||||
: myInverseNeedUpdate(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
@@ -133,7 +129,6 @@ OpenGl_ClippingState::OpenGl_ClippingState()
|
||||
: myIndex(0),
|
||||
myNextIndex(1)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -28,7 +28,6 @@ OpenGl_ShadowMap::OpenGl_ShadowMap()
|
||||
myShadowCamera(new Graphic3d_Camera()),
|
||||
myShadowMapBias(0.0f)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Executable → Regular
+3
-12
@@ -19,10 +19,7 @@
|
||||
#include <OpenGl_Workspace.hxx>
|
||||
#include <Standard_Dump.hxx>
|
||||
|
||||
OpenGl_StencilTest::OpenGl_StencilTest()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_StencilTest::OpenGl_StencilTest() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -42,10 +39,7 @@ void OpenGl_StencilTest::Render(const occ::handle<OpenGl_Workspace>& theWorkspac
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void OpenGl_StencilTest::Release(OpenGl_Context*)
|
||||
{
|
||||
//
|
||||
}
|
||||
void OpenGl_StencilTest::Release(OpenGl_Context*) {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -56,10 +50,7 @@ void OpenGl_StencilTest::SetOptions(const bool theIsEnabled)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_StencilTest::~OpenGl_StencilTest()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_StencilTest::~OpenGl_StencilTest() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -135,10 +135,7 @@ void OpenGl_Text::Init(const occ::handle<OpenGl_Context>& theCtx,
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_Text::~OpenGl_Text()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_Text::~OpenGl_Text() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -34,10 +34,7 @@ inline NCollection_Vec2<float>& floor(NCollection_Vec2<float>& theVec)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_TextBuilder::OpenGl_TextBuilder()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_TextBuilder::OpenGl_TextBuilder() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -109,7 +109,6 @@ OpenGl_Texture::OpenGl_Texture(const TCollection_AsciiString& theRe
|
||||
myIsAlpha(false),
|
||||
myIsTopDown(true)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -129,13 +128,7 @@ bool OpenGl_Texture::Create(const occ::handle<OpenGl_Context>& theCtx)
|
||||
}
|
||||
|
||||
theCtx->core11fwd->glGenTextures(1, &myTextureId);
|
||||
if (myTextureId == NO_TEXTURE)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// mySampler->Create (theCtx); // do not create sampler object by default
|
||||
return true;
|
||||
return myTextureId != NO_TEXTURE;
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -27,7 +27,6 @@ OpenGl_TextureBuffer::OpenGl_TextureBuffer()
|
||||
: myTextureId(NO_TEXTURE),
|
||||
myTexFormat(GL_RGBA32F)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -28,7 +28,6 @@ OpenGl_TileSampler::OpenGl_TileSampler()
|
||||
myTileSize(0),
|
||||
myViewSize(0, 0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -20,17 +20,11 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_VertexBuffer, OpenGl_Buffer)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_VertexBuffer::OpenGl_VertexBuffer()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_VertexBuffer::OpenGl_VertexBuffer() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
OpenGl_VertexBuffer::~OpenGl_VertexBuffer()
|
||||
{
|
||||
//
|
||||
}
|
||||
OpenGl_VertexBuffer::~OpenGl_VertexBuffer() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -69,24 +63,15 @@ void OpenGl_VertexBuffer::UnbindVertexAttrib(const occ::handle<OpenGl_Context>&
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void OpenGl_VertexBuffer::BindAllAttributes(const occ::handle<OpenGl_Context>&) const
|
||||
{
|
||||
//
|
||||
}
|
||||
void OpenGl_VertexBuffer::BindAllAttributes(const occ::handle<OpenGl_Context>&) const {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void OpenGl_VertexBuffer::BindPositionAttribute(const occ::handle<OpenGl_Context>&) const
|
||||
{
|
||||
//
|
||||
}
|
||||
void OpenGl_VertexBuffer::BindPositionAttribute(const occ::handle<OpenGl_Context>&) const {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void OpenGl_VertexBuffer::UnbindAllAttributes(const occ::handle<OpenGl_Context>&) const
|
||||
{
|
||||
//
|
||||
}
|
||||
void OpenGl_VertexBuffer::UnbindAllAttributes(const occ::handle<OpenGl_Context>&) const {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -168,7 +168,6 @@ OpenGl_Window::OpenGl_Window()
|
||||
: myOwnGContext(false),
|
||||
mySwapInterval(0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -57,9 +57,7 @@
|
||||
OpenGl_Window::OpenGl_Window()
|
||||
: myOwnGContext (false),
|
||||
mySwapInterval (0)
|
||||
{
|
||||
//
|
||||
}
|
||||
{}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ Aspect_GenId::Aspect_GenId()
|
||||
myLowerBound(0),
|
||||
myUpperBound(INT_MAX / 2)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -28,7 +28,6 @@ Aspect_Grid::Aspect_Grid(const double theXOrigin,
|
||||
myIsActive(false),
|
||||
myDrawMode(Aspect_GDM_Lines)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
void Aspect_Grid::SetXOrigin(const double theOrigin)
|
||||
|
||||
@@ -26,7 +26,6 @@ Aspect_SkydomeBackground::Aspect_SkydomeBackground()
|
||||
myFogginess(0.0f),
|
||||
mySize(512)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -55,10 +54,7 @@ Aspect_SkydomeBackground::Aspect_SkydomeBackground(const gp_Dir& theSunDirection
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Aspect_SkydomeBackground::~Aspect_SkydomeBackground()
|
||||
{
|
||||
//
|
||||
}
|
||||
Aspect_SkydomeBackground::~Aspect_SkydomeBackground() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ Aspect_VKeySet::Aspect_VKeySet()
|
||||
: myKeys(0, Aspect_VKey_MAX),
|
||||
myModifiers(Aspect_VKeyFlags_NONE)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -33,10 +33,7 @@ Aspect_WindowInputListener::Aspect_WindowInputListener()
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Aspect_WindowInputListener::~Aspect_WindowInputListener()
|
||||
{
|
||||
//
|
||||
}
|
||||
Aspect_WindowInputListener::~Aspect_WindowInputListener() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -29,9 +29,7 @@
|
||||
|
||||
Cocoa_LocalPool::Cocoa_LocalPool()
|
||||
: myPoolObj ([[NSAutoreleasePool alloc] init])
|
||||
{
|
||||
//
|
||||
}
|
||||
{}
|
||||
|
||||
// =======================================================================
|
||||
// function : ~Cocoa_LocalPool
|
||||
|
||||
@@ -75,7 +75,6 @@ Font_TextFormatter::Font_TextFormatter()
|
||||
myBndWidth(0.0f),
|
||||
myMoveVec(0.0f, 0.0f)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -258,14 +258,11 @@ public:
|
||||
//! Returns true if the symbol is CR, BEL, FF, NP, BS or VT
|
||||
static inline bool IsCommandSymbol(const char32_t& theSymbol)
|
||||
{
|
||||
if (theSymbol == '\x0D' // CR (carriage return)
|
||||
|| theSymbol == '\a' // BEL (alarm)
|
||||
|| theSymbol == '\f' // FF (form feed) NP (new page)
|
||||
|| theSymbol == '\b' // BS (backspace)
|
||||
|| theSymbol == '\v') // VT (vertical tab)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (theSymbol == '\x0D' // CR (carriage return)
|
||||
|| theSymbol == '\a' // BEL (alarm)
|
||||
|| theSymbol == '\f' // FF (form feed) NP (new page)
|
||||
|| theSymbol == '\b' // BS (backspace)
|
||||
|| theSymbol == '\v'); // VT (vertical tab)
|
||||
}
|
||||
|
||||
//! Returns true if the symbol separates words when wrapping is enabled
|
||||
|
||||
@@ -44,7 +44,6 @@ Graphic3d_Aspects::Graphic3d_Aspects()
|
||||
myToMapTexture(false),
|
||||
myIsTextZoomable(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -25,7 +25,6 @@ Graphic3d_BvhCStructureSetTrsfPers::Graphic3d_BvhCStructureSetTrsfPers(
|
||||
myBVH(new BVH_Tree<double, 3>()),
|
||||
myBuilder(theBuilder)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -42,7 +42,4 @@ Graphic3d_CubeMap::Graphic3d_CubeMap(const occ::handle<Image_PixMap>& thePixmap,
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_CubeMap::~Graphic3d_CubeMap()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_CubeMap::~Graphic3d_CubeMap() = default;
|
||||
|
||||
@@ -27,7 +27,6 @@ Graphic3d_CullingTool::Graphic3d_CullingTool()
|
||||
myCamScale(1.0),
|
||||
myPixelSize(1.0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -256,15 +256,11 @@ Graphic3d_FrameStats::Graphic3d_FrameStats()
|
||||
myLastFrameIndex(0),
|
||||
myIsLongLineFormat(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_FrameStats::~Graphic3d_FrameStats()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_FrameStats::~Graphic3d_FrameStats() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ Graphic3d_FrameStatsData::Graphic3d_FrameStatsData(Graphic3d_FrameStatsData&& th
|
||||
myTimers(std::move(theOther.myTimers)),
|
||||
myTimersMin(std::move(theOther.myTimersMin)),
|
||||
myTimersMax(std::move(theOther.myTimersMax)),
|
||||
myFps(std::move(theOther.myFps)),
|
||||
myFpsCpu(std::move(theOther.myFpsCpu)),
|
||||
myFpsImmediate(std::move(theOther.myFpsImmediate)),
|
||||
myFpsCpuImmediate(std::move(theOther.myFpsCpuImmediate))
|
||||
myFps(theOther.myFps),
|
||||
myFpsCpu(theOther.myFpsCpu),
|
||||
myFpsImmediate(theOther.myFpsImmediate),
|
||||
myFpsCpuImmediate(theOther.myFpsCpuImmediate)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -81,10 +81,10 @@ Graphic3d_FrameStatsData& Graphic3d_FrameStatsData::operator=(
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
myFps = std::move(theOther.myFps);
|
||||
myFpsCpu = std::move(theOther.myFpsCpu);
|
||||
myFpsImmediate = std::move(theOther.myFpsImmediate);
|
||||
myFpsCpuImmediate = std::move(theOther.myFpsCpuImmediate);
|
||||
myFps = theOther.myFps;
|
||||
myFpsCpu = theOther.myFpsCpu;
|
||||
myFpsImmediate = theOther.myFpsImmediate;
|
||||
myFpsCpuImmediate = theOther.myFpsCpuImmediate;
|
||||
myCounters = std::move(theOther.myCounters);
|
||||
myTimers = std::move(theOther.myTimers);
|
||||
myTimersMin = std::move(theOther.myTimersMin);
|
||||
|
||||
@@ -94,5 +94,4 @@ Graphic3d_GraphicDriverFactory::Graphic3d_GraphicDriverFactory(
|
||||
const TCollection_AsciiString& theName)
|
||||
: myName(theName)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@ Graphic3d_Group::Graphic3d_Group(const occ::handle<Graphic3d_Structure>& theStru
|
||||
: myStructure(theStruct.operator->()),
|
||||
myIsClosed(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -34,10 +34,7 @@ Graphic3d_Layer::Graphic3d_Layer(Graphic3d_ZLayerId theId,
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_Layer::~Graphic3d_Layer()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_Layer::~Graphic3d_Layer() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_SequenceOfHClipPlane, Standard_Transient)
|
||||
Graphic3d_SequenceOfHClipPlane::Graphic3d_SequenceOfHClipPlane()
|
||||
: myToOverrideGlobal(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -24,12 +24,8 @@ Graphic3d_ShaderAttribute::Graphic3d_ShaderAttribute(const TCollection_AsciiStri
|
||||
: myName(theName),
|
||||
myLocation(theLocation)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_ShaderAttribute::~Graphic3d_ShaderAttribute()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_ShaderAttribute::~Graphic3d_ShaderAttribute() = default;
|
||||
|
||||
@@ -220,10 +220,7 @@ Graphic3d_ShaderManager::Graphic3d_ShaderManager(Aspect_GraphicsLibrary theGapi)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_ShaderManager::~Graphic3d_ShaderManager()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_ShaderManager::~Graphic3d_ShaderManager() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -80,10 +80,7 @@ occ::handle<Graphic3d_ShaderObject> Graphic3d_ShaderObject::CreateFromSource(
|
||||
// function : ~Graphic3d_ShaderObject
|
||||
// purpose : Releases resources of shader object
|
||||
// =======================================================================
|
||||
Graphic3d_ShaderObject::~Graphic3d_ShaderObject()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_ShaderObject::~Graphic3d_ShaderObject() = default;
|
||||
|
||||
// =======================================================================
|
||||
// function : IsDone
|
||||
|
||||
Executable → Regular
+1
-4
@@ -95,10 +95,7 @@ Graphic3d_ShaderProgram::Graphic3d_ShaderProgram()
|
||||
// function : ~Graphic3d_ShaderProgram
|
||||
// purpose : Releases resources of program object
|
||||
// =======================================================================
|
||||
Graphic3d_ShaderProgram::~Graphic3d_ShaderProgram()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_ShaderProgram::~Graphic3d_ShaderProgram() = default;
|
||||
|
||||
// =======================================================================
|
||||
// function : IsDone
|
||||
|
||||
@@ -31,10 +31,7 @@ template struct Graphic3d_UniformValue<NCollection_Vec4<int>>;
|
||||
// function : ~Graphic3d_ValueInterface
|
||||
// purpose : Releases memory resources of variable value
|
||||
// =======================================================================
|
||||
Graphic3d_ValueInterface::~Graphic3d_ValueInterface()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_ValueInterface::~Graphic3d_ValueInterface() = default;
|
||||
|
||||
// =======================================================================
|
||||
// function : Graphic3d_ShaderVariable
|
||||
@@ -44,7 +41,6 @@ Graphic3d_ShaderVariable::Graphic3d_ShaderVariable(const TCollection_AsciiString
|
||||
: myName(theName),
|
||||
myValue(nullptr)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
|
||||
@@ -33,7 +33,6 @@ Graphic3d_StructureManager::Graphic3d_StructureManager(
|
||||
myGraphicDriver(theDriver),
|
||||
myDeviceLostFlag(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -25,7 +25,6 @@ IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_Texture1Dmanual, Graphic3d_Texture1D)
|
||||
Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual(const TCollection_AsciiString& theFileName)
|
||||
: Graphic3d_Texture1D(theFileName, Graphic3d_TypeOfTexture_1D)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -33,7 +32,6 @@ Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual(const TCollection_AsciiStri
|
||||
Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual(const Graphic3d_NameOfTexture1D theNOT)
|
||||
: Graphic3d_Texture1D(theNOT, Graphic3d_TypeOfTexture_1D)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -41,5 +39,4 @@ Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual(const Graphic3d_NameOfTextu
|
||||
Graphic3d_Texture1Dmanual::Graphic3d_Texture1Dmanual(const occ::handle<Image_PixMap>& thePixMap)
|
||||
: Graphic3d_Texture1D(thePixMap, Graphic3d_TypeOfTexture_1D)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ Graphic3d_Texture2D::Graphic3d_Texture2D(const TCollection_AsciiString& theFileN
|
||||
: Graphic3d_TextureMap(theFileName, theType),
|
||||
myName(Graphic3d_NOT_2D_UNKNOWN)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -111,7 +110,6 @@ Graphic3d_Texture2D::Graphic3d_Texture2D(const occ::handle<Image_PixMap>& thePix
|
||||
: Graphic3d_TextureMap(thePixMap, theType),
|
||||
myName(Graphic3d_NOT_2D_UNKNOWN)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -48,10 +48,7 @@ Graphic3d_Texture3D::Graphic3d_Texture3D(
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_Texture3D::~Graphic3d_Texture3D()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_Texture3D::~Graphic3d_Texture3D() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -33,15 +33,11 @@ Graphic3d_TextureParams::Graphic3d_TextureParams()
|
||||
myToModulate(false),
|
||||
myToRepeat(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_TextureParams::~Graphic3d_TextureParams()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_TextureParams::~Graphic3d_TextureParams() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -114,10 +114,7 @@ Graphic3d_TextureRoot::Graphic3d_TextureRoot(const occ::handle<Image_PixMap>& th
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Graphic3d_TextureRoot::~Graphic3d_TextureRoot()
|
||||
{
|
||||
//
|
||||
}
|
||||
Graphic3d_TextureRoot::~Graphic3d_TextureRoot() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -68,7 +68,6 @@ Image_Diff::Image_Diff()
|
||||
: myColorTolerance(0.0),
|
||||
myIsBorderFilterOn(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -122,7 +122,6 @@ const char* Image_PixMap::ImageFormatToString(Image_CompressedFormat theFormat)
|
||||
Image_PixMap::Image_PixMap()
|
||||
: myImgFormat(Image_Format_Gray)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -39,7 +39,6 @@ Media_BufferPool::Media_BufferPool()
|
||||
: myPool(nullptr),
|
||||
myBufferSize(0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -271,11 +271,7 @@ bool Media_CodecContext::SendPacket(const occ::handle<Media_Packet>& thePacket)
|
||||
#ifdef HAVE_FFMPEG
|
||||
#if FFMPEG_HAVE_NEW_DECODE_API
|
||||
const int aRes = avcodec_send_packet(myCodecCtx, thePacket->Packet());
|
||||
if (aRes < 0 && aRes != AVERROR_EOF)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return aRes >= 0 || aRes == AVERROR_EOF;
|
||||
#else
|
||||
// For older FFmpeg versions, fallback to older decode API if needed
|
||||
const int aRes = avcodec_send_packet(myCodecCtx, thePacket->Packet());
|
||||
|
||||
@@ -178,7 +178,6 @@ Media_FormatContext::Media_FormatContext()
|
||||
myPtsStartBase(0.0),
|
||||
myDuration(0.0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -156,7 +156,6 @@ WNT_HIDSpaceMouse::WNT_HIDSpaceMouse(unsigned long theProductId,
|
||||
myProductId(theProductId),
|
||||
myValueRange(THE_RAW_RANGE_350)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -55,10 +55,7 @@ Wasm_Window::Wasm_Window(const TCollection_AsciiString& theCanvasId, const bool
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Wasm_Window::~Wasm_Window()
|
||||
{
|
||||
//
|
||||
}
|
||||
Wasm_Window::~Wasm_Window() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -175,10 +172,7 @@ void Wasm_Window::SetSizeBacking(const NCollection_Vec2<int>& theSize)
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void Wasm_Window::InvalidateContent(const occ::handle<Aspect_DisplayConnection>&)
|
||||
{
|
||||
//
|
||||
}
|
||||
void Wasm_Window::InvalidateContent(const occ::handle<Aspect_DisplayConnection>&) {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ AIS_Animation::AIS_Animation(const TCollection_AsciiString& theAnimationName)
|
||||
myOwnDuration(0.0),
|
||||
myChildrenDuration(0.0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -29,7 +29,6 @@ AIS_AnimationAxisRotation::AIS_AnimationAxisRotation(
|
||||
myAngleStart(theAngleStart),
|
||||
myAngleEnd(theAngleEnd)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -25,7 +25,6 @@ AIS_AnimationCamera::AIS_AnimationCamera(const TCollection_AsciiString& theAnima
|
||||
: AIS_Animation(theAnimationName),
|
||||
myView(theView)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -26,7 +26,6 @@ AIS_AnimationObject::AIS_AnimationObject(const TCollection_AsciiString& theAnima
|
||||
: AIS_BaseAnimationObject(theAnimationName, theContext, theObject),
|
||||
myTrsfLerp(theTrsfStart, theTrsfEnd)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -27,7 +27,6 @@ AIS_BaseAnimationObject::AIS_BaseAnimationObject(
|
||||
myContext(theContext),
|
||||
myObject(theObject)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -137,7 +137,8 @@ TCollection_ExtendedString AIS_ColorScale::GetLabel(const int theIndex) const
|
||||
{
|
||||
if (myLabelType == Aspect_TOCSD_USER)
|
||||
{
|
||||
if (theIndex >= myLabels.Lower() || theIndex <= myLabels.Upper())
|
||||
if (theIndex >= NCollection_Sequence<TCollection_ExtendedString>::Lower()
|
||||
|| theIndex <= myLabels.Upper())
|
||||
{
|
||||
return myLabels.Value(theIndex);
|
||||
}
|
||||
@@ -432,7 +433,7 @@ bool AIS_ColorScale::FindColor(const double theValue, Quantity_Color& theColor)
|
||||
if (myColorType == Aspect_TOCSD_USER)
|
||||
{
|
||||
const int anInterval = colorDiscreteInterval(theValue, myMin, myMax, myNbIntervals);
|
||||
if (anInterval < myColors.Lower() || anInterval > myColors.Upper())
|
||||
if (anInterval < NCollection_Sequence<Quantity_Color>::Lower() || anInterval > myColors.Upper())
|
||||
{
|
||||
theColor = Quantity_Color();
|
||||
return false;
|
||||
|
||||
@@ -39,7 +39,6 @@ AIS_ConnectedInteractive::AIS_ConnectedInteractive(
|
||||
const PrsMgr_TypeOfPresentation3d aTypeOfPresentation3d)
|
||||
: AIS_InteractiveObject(aTypeOfPresentation3d)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -414,7 +414,7 @@ void AIS_InteractiveContext::SetViewAffinity(const occ::handle<AIS_InteractiveOb
|
||||
|
||||
occ::handle<Graphic3d_ViewAffinity> anAffinity = theIObj->ViewAffinity();
|
||||
occ::handle<Graphic3d_CView> aViewImpl = theView->View();
|
||||
anAffinity->SetVisible(aViewImpl->Identification(), theIsVisible == true);
|
||||
anAffinity->SetVisible(aViewImpl->Identification(), theIsVisible);
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -1795,7 +1795,7 @@ void AIS_InteractiveContext::ClearGlobal(const occ::handle<AIS_InteractiveObject
|
||||
theIObj->ErasePresentations(true); // make sure highlighting presentations are properly erased
|
||||
|
||||
// Object removes from Detected sequence
|
||||
for (int aDetIter = myDetectedSeq.Lower(); aDetIter <= myDetectedSeq.Upper();)
|
||||
for (int aDetIter = NCollection_Sequence<int>::Lower(); aDetIter <= myDetectedSeq.Upper();)
|
||||
{
|
||||
occ::handle<SelectMgr_EntityOwner> aPicked = MainSelector()->Picked(myDetectedSeq(aDetIter));
|
||||
occ::handle<AIS_InteractiveObject> anObj;
|
||||
@@ -2618,7 +2618,7 @@ AIS_StatusOfDetection AIS_InteractiveContext::moveTo(const occ::handle<V3d_View>
|
||||
|
||||
if (aNewDetected >= 1)
|
||||
{
|
||||
myCurHighlighted = myDetectedSeq.Lower();
|
||||
myCurHighlighted = NCollection_Sequence<int>::Lower();
|
||||
|
||||
// Does nothing if previously detected object is equal to the current one.
|
||||
// However in advanced selection modes the owners comparison
|
||||
@@ -3130,7 +3130,8 @@ void AIS_InteractiveContext::ClearSelected(const bool theToUpdateViewer)
|
||||
|
||||
bool AIS_InteractiveContext::isDetected(const occ::handle<AIS_InteractiveObject>& theObject)
|
||||
{
|
||||
for (int aDetIter = myDetectedSeq.Lower(); aDetIter <= myDetectedSeq.Upper(); aDetIter++)
|
||||
for (int aDetIter = NCollection_Sequence<int>::Lower(); aDetIter <= myDetectedSeq.Upper();
|
||||
aDetIter++)
|
||||
{
|
||||
occ::handle<SelectMgr_EntityOwner> aPicked = MainSelector()->Picked(myDetectedSeq(aDetIter));
|
||||
occ::handle<AIS_InteractiveObject> anObj;
|
||||
@@ -3559,7 +3560,7 @@ int AIS_InteractiveContext::HilightNextDetected(const occ::handle<V3d_View>& the
|
||||
|
||||
if (++myCurHighlighted > myDetectedSeq.Upper())
|
||||
{
|
||||
myCurHighlighted = myDetectedSeq.Lower();
|
||||
myCurHighlighted = NCollection_Sequence<int>::Lower();
|
||||
}
|
||||
const occ::handle<SelectMgr_EntityOwner>& anOwner =
|
||||
MainSelector()->Picked(myDetectedSeq(myCurHighlighted));
|
||||
@@ -3591,7 +3592,7 @@ int AIS_InteractiveContext::HilightPreviousDetected(const occ::handle<V3d_View>&
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (--myCurHighlighted < myDetectedSeq.Lower())
|
||||
if (--myCurHighlighted < NCollection_Sequence<int>::Lower())
|
||||
{
|
||||
myCurHighlighted = myDetectedSeq.Upper();
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ public: //! @name iteration through detected entities
|
||||
{
|
||||
if (!myDetectedSeq.IsEmpty())
|
||||
{
|
||||
myCurDetected = myDetectedSeq.Lower();
|
||||
myCurDetected = NCollection_Sequence<int>::Lower();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -495,7 +495,8 @@ public: //! @name iteration through detected entities
|
||||
//! @sa DetectedCurrentOwner(), InitDetected(), NextDetected().
|
||||
bool MoreDetected() const
|
||||
{
|
||||
return myCurDetected >= myDetectedSeq.Lower() && myCurDetected <= myDetectedSeq.Upper();
|
||||
return myCurDetected >= NCollection_Sequence<int>::Lower()
|
||||
&& myCurDetected <= myDetectedSeq.Upper();
|
||||
}
|
||||
|
||||
//! Gets next current object during iteration through mouse-detected interactive objects.
|
||||
|
||||
@@ -36,7 +36,6 @@ AIS_InteractiveObject::AIS_InteractiveObject(
|
||||
: SelectMgr_SelectableObject(aTypeOfPresentation3d),
|
||||
myCTXPtr(nullptr)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -40,7 +40,6 @@ AIS_LightSourceOwner::AIS_LightSourceOwner(const occ::handle<AIS_LightSource>& t
|
||||
int thePriority)
|
||||
: SelectMgr_EntityOwner((const occ::handle<SelectMgr_SelectableObject>&)theObject, thePriority)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -1802,7 +1802,6 @@ AIS_Manipulator::Axis::Axis(const gp_Ax1& theAxis,
|
||||
myFacettesNumber(20),
|
||||
myCircleRadius(myLength + myBoxSize + myBoxSize * 0.5f * 0.5f)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -28,7 +28,6 @@ AIS_ManipulatorOwner::AIS_ManipulatorOwner(
|
||||
myIndex(theIndex),
|
||||
myMode(theMode)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -38,15 +38,11 @@ AIS_PointCloudOwner::AIS_PointCloudOwner(const occ::handle<AIS_PointCloud>& theO
|
||||
myDetPoints(new TColStd_HPackedMapOfInteger()),
|
||||
mySelPoints(new TColStd_HPackedMapOfInteger())
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
AIS_PointCloudOwner::~AIS_PointCloudOwner()
|
||||
{
|
||||
//
|
||||
}
|
||||
AIS_PointCloudOwner::~AIS_PointCloudOwner() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ bool AIS_RubberBand::fillTriangles()
|
||||
new NCollection_IncAllocator(MEMORY_BLOCK_SIZE);
|
||||
occ::handle<BRepMesh_DataStructureOfDelaun> aMeshStructure =
|
||||
new BRepMesh_DataStructureOfDelaun(anAllocator);
|
||||
int aPtsLower = myPoints.Lower();
|
||||
int aPtsLower = NCollection_Sequence<NCollection_Vec2<int>>::Lower();
|
||||
int aPtsUpper = myPoints.Upper();
|
||||
IMeshData::VectorOfInteger anIndexes(myPoints.Length(), anAllocator);
|
||||
for (int aPtIdx = aPtsLower; aPtIdx <= aPtsUpper; ++aPtIdx)
|
||||
|
||||
@@ -92,7 +92,6 @@ AIS_Shape::AIS_Shape(const TopoDS_Shape& theShape)
|
||||
myInitAng(0.0),
|
||||
myCompBB(true)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -113,7 +113,7 @@ void AIS_TextLabel::SetAngle(const double theAngle)
|
||||
|
||||
void AIS_TextLabel::SetZoomable(const bool theIsZoomable)
|
||||
{
|
||||
myDrawer->TextAspect()->Aspect()->SetTextZoomable(theIsZoomable == true);
|
||||
myDrawer->TextAspect()->Aspect()->SetTextZoomable(theIsZoomable);
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -230,7 +230,7 @@ void AIS_TextLabel::Compute(const occ::handle<PrsMgr_PresentationManager>&,
|
||||
const bool isTextZoomable = anAsp->Aspect()->GetTextZoomable();
|
||||
if (myHasOrientation3D)
|
||||
{
|
||||
anAsp->Aspect()->SetTextZoomable(myHasFlipping ? true : false);
|
||||
anAsp->Aspect()->SetTextZoomable(myHasFlipping);
|
||||
SetTransformPersistence(new Graphic3d_TransformPers(Graphic3d_TMF_ZoomPers, aPosition));
|
||||
aPosition = gp::Origin();
|
||||
}
|
||||
|
||||
@@ -173,10 +173,7 @@ AIS_ViewController::AIS_ViewController()
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
AIS_ViewController::~AIS_ViewController()
|
||||
{
|
||||
//
|
||||
}
|
||||
AIS_ViewController::~AIS_ViewController() = default;
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -2725,7 +2722,6 @@ void AIS_ViewController::handleXRPicking(const occ::handle<AIS_InteractiveContex
|
||||
void AIS_ViewController::OnSelectionChanged(const occ::handle<AIS_InteractiveContext>&,
|
||||
const occ::handle<V3d_View>&)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -2734,7 +2730,6 @@ void AIS_ViewController::OnSubviewChanged(const occ::handle<AIS_InteractiveConte
|
||||
const occ::handle<V3d_View>&,
|
||||
const occ::handle<V3d_View>&)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -85,7 +85,6 @@ AIS_XRTrackedDevice::AIS_XRTrackedDevice()
|
||||
myRole(Aspect_XRTrackedDeviceRole_Other),
|
||||
myToShowAxes(true)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -421,11 +421,8 @@ void DsgPrs::ComputeFilletRadiusPresentation(const double /*ArrowLength*/,
|
||||
gp_Dir dir1(gp_Vec(Center, FirstPoint));
|
||||
gp_Dir dir2(gp_Vec(Center, SecondPoint));
|
||||
double Angle = dir1.Angle(dir2);
|
||||
if (Angle <= Precision::Angular() || (M_PI - Angle) <= Precision::Angular()
|
||||
|| Value <= Precision::Confusion())
|
||||
SpecCase = true;
|
||||
else
|
||||
SpecCase = false;
|
||||
SpecCase = Angle <= Precision::Angular() || (M_PI - Angle) <= Precision::Angular()
|
||||
|| Value <= Precision::Confusion();
|
||||
if (!SpecCase)
|
||||
{
|
||||
// Computing presentation of fillet's arc
|
||||
|
||||
@@ -28,7 +28,6 @@ Prs3d_ArrowAspect::Prs3d_ArrowAspect()
|
||||
myLength(1.0),
|
||||
myIsZoomable(true)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -39,7 +38,6 @@ Prs3d_ArrowAspect::Prs3d_ArrowAspect(const double theAngle, const double theLeng
|
||||
myAngle(theAngle),
|
||||
myLength(theLength)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -49,7 +47,6 @@ Prs3d_ArrowAspect::Prs3d_ArrowAspect(const occ::handle<Graphic3d_AspectLine3d>&
|
||||
myAngle(M_PI / 180.0 * 10.0),
|
||||
myLength(1.0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -25,7 +25,6 @@ Prs3d_LineAspect::Prs3d_LineAspect(const Quantity_Color& theColor,
|
||||
const double theWidth)
|
||||
: myAspect(new Graphic3d_AspectLine3d(theColor, theType, theWidth))
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -35,7 +35,6 @@ Prs3d_PlaneAspect::Prs3d_PlaneAspect()
|
||||
myDrawEdges(true),
|
||||
myDrawIso(false)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -25,7 +25,6 @@ Prs3d_PointAspect::Prs3d_PointAspect(const Aspect_TypeOfMarker theType,
|
||||
const double theScale)
|
||||
: myAspect(new Graphic3d_AspectMarker3d(theType, theColor, theScale))
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -36,7 +35,6 @@ Prs3d_PointAspect::Prs3d_PointAspect(const Quantity_Color&
|
||||
const occ::handle<NCollection_HArray1<uint8_t>>& theTexture)
|
||||
: myAspect(new Graphic3d_AspectMarker3d(theColor, theWidth, theHeight, theTexture))
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
@@ -26,15 +26,11 @@ Prs3d_PresentationShadow::Prs3d_PresentationShadow(
|
||||
myParentAffinity(thePrs->CStructure()->ViewAffinity),
|
||||
myParentStructId(thePrs->Identification())
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
void Prs3d_PresentationShadow::CalculateBoundBox()
|
||||
{
|
||||
//
|
||||
}
|
||||
void Prs3d_PresentationShadow::CalculateBoundBox() {}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ Prs3d_TextAspect::Prs3d_TextAspect()
|
||||
myVerticalJustification(Graphic3d_VTA_BOTTOM),
|
||||
myOrientation(Graphic3d_TP_RIGHT)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -43,7 +42,6 @@ Prs3d_TextAspect::Prs3d_TextAspect(const occ::handle<Graphic3d_AspectText3d>& th
|
||||
myVerticalJustification(Graphic3d_VTA_BOTTOM),
|
||||
myOrientation(Graphic3d_TP_RIGHT)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user