-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
SketcherPrs_SymbolPrs::SketcherPrs_SymbolPrs(ModelAPI_Feature* theConstraint,
SketchPlugin_Sketch* theSketcher)
- : AIS_InteractiveObject(), myConstraint(theConstraint),
- myIsCustomColor(false),
- mySketcher(theSketcher)
+ : AIS_InteractiveObject(),
+ myConstraint(theConstraint),
+ mySketcher(theSketcher),
+ myIsCustomColor(false)
{
SetAutoHilight(Standard_False);
}
aSizedMap->InitTrash(aPixMap->Format(), aWidth, aHeigh);
for (Standard_Size i = 0; i < aWidth; i++) {
for (Standard_Size j = 0; j < aHeigh; j++) {
- aSizedMap->SetPixelColor(int(i), int(j), aPixMap->PixelColor(i / aRatio, j / aRatio));
+ aSizedMap->SetPixelColor(int(i), int(j),
+ aPixMap->PixelColor(int(i / aRatio), int(j / aRatio)));
}
}
aPixMap = aSizedMap;
std::shared_ptr<GeomAPI_Pnt> aPnt1 = aEdge->firstPoint();
std::shared_ptr<GeomAPI_Pnt> aPnt2 = aEdge->lastPoint();
- gp_Pnt aP1 = aPnt1->impl<gp_Pnt>();
- gp_Pnt aP2 = aPnt2->impl<gp_Pnt>();
// Draw line by two points
Handle(Graphic3d_ArrayOfSegments) aLines = new Graphic3d_ArrayOfSegments(2, 1);
//*********************************************************************************
void SketcherPrs_SymbolPrs::HilightSelected(const Handle(PrsMgr_PresentationManager3d)& thePM,
- const SelectMgr_SequenceOfOwner& theOwners)
+ const SelectMgr_SequenceOfOwner& /*theOwners*/)
{
Handle( Prs3d_Presentation ) aSelectionPrs = GetSelectPresentation( thePM );
aSelectionPrs->Clear();
void SketcherPrs_SymbolPrs::HilightOwnerWithColor(
const Handle(PrsMgr_PresentationManager3d)& thePM,
const Handle(Prs3d_Drawer)& theStyle,
- const Handle(SelectMgr_EntityOwner)& theOwner)
+ const Handle(SelectMgr_EntityOwner)& /*theOwner*/)
{
thePM->Color(this, theStyle);
//*********************************************************************************
void SketcherPrs_SymbolPrs::Compute(
- const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
+ const Handle(PrsMgr_PresentationManager3d)& /*thePresentationManager*/,
const Handle(Prs3d_Presentation)& thePresentation,
- const Standard_Integer theMode)
+ const Standard_Integer /*theMode*/)
{
if (!plane().get())
return;