if (!myView().IsNull())
{
myView()->SetComputedMode (Standard_False);
+ myView()->Redraw();
}
}
if (!myView().IsNull())
{
myView()->SetComputedMode (Standard_True);
+ myView()->Redraw();
}
}
/// <param name="theZoomFactor">Current zoom</param>
void Place(int theX, int theY, float theZoomFactor)
{
- Quantity_Factor aZoomFactor = theZoomFactor;
+ Standard_Real aZoomFactor = theZoomFactor;
if (!myView().IsNull())
{
myView()->Place(theX, theY, aZoomFactor);
Quantity_Color aCol = Quantity_Color(theR/255.,theG/255.,theB/255.,Quantity_TOC_RGB);
for (; myAISContext()->MoreSelected(); myAISContext()->NextSelected())
{
- myAISContext()->SetColor (myAISContext()->SelectedInteractive(), aCol.Name(), Standard_False);
+ myAISContext()->SetColor (myAISContext()->SelectedInteractive(), aCol, Standard_False);
}
myAISContext()->UpdateCurrentViewer();
}
theGreen=255;
theBlue=255;
Handle(AIS_InteractiveObject) aCurrent ;
- Quantity_Color anObjCol;
myAISContext()->InitSelected();
if (!myAISContext()->MoreSelected())
{
aCurrent = myAISContext()->SelectedInteractive();
if ( aCurrent->HasColor () )
{
- anObjCol = myAISContext()->Color(aCurrent);
- Quantity_Parameter r1, r2, r3;
+ Quantity_Color anObjCol;
+ myAISContext()->Color (aCurrent, anObjCol);
+ Standard_Real r1, r2, r3;
anObjCol.Values(r1, r2, r3, Quantity_TOC_RGB);
theRed=(int)r1*255;
theGreen=(int)r2*255;