PartDesign: Adopt to new property status bits
This commit is contained in:
parent
a6c8f38cf0
commit
7d30833349
|
@ -41,7 +41,7 @@ OriginFeature::OriginFeature()
|
|||
ADD_PROPERTY_TYPE ( Role, (""), 0, App::Prop_ReadOnly, "Role of the feature in the Origin" ) ;
|
||||
|
||||
// Set placement to read-only
|
||||
Placement.StatusBits.set(3, true);
|
||||
Placement.setStatus(Property::Hidden, true);
|
||||
}
|
||||
|
||||
OriginFeature::~OriginFeature()
|
||||
|
|
|
@ -55,7 +55,7 @@ ViewProviderOriginFeature::ViewProviderOriginFeature () {
|
|||
"Visual size of the feature" );
|
||||
|
||||
ShapeColor.setValue ( 50./255, 150./255, 250./255 ); // Set default color for origin (light-blue)
|
||||
BoundingBox.StatusBits.set (3, true) ; // Hide Boundingbox from the user due to it doesn't make sence
|
||||
BoundingBox.setStatus(App::Property::Hidden, true); // Hide Boundingbox from the user due to it doesn't make sence
|
||||
|
||||
// Create node for scaling the origin
|
||||
pScale = new SoScale ();
|
||||
|
|
|
@ -52,7 +52,7 @@ PROPERTY_SOURCE(PartDesign::Feature,Part::Feature)
|
|||
Feature::Feature()
|
||||
{
|
||||
ADD_PROPERTY(BaseFeature,(0));
|
||||
Placement.StatusBits.set(3, true);
|
||||
Placement.setStatus(App::Property::Hidden, true);
|
||||
}
|
||||
|
||||
short Feature::mustExecute() const
|
||||
|
|
|
@ -46,7 +46,7 @@ PROPERTY_SOURCE(PartDesign::DressUp, PartDesign::Feature)
|
|||
DressUp::DressUp()
|
||||
{
|
||||
ADD_PROPERTY(Base,(0));
|
||||
Placement.StatusBits.set(2, true);
|
||||
Placement.setStatus(App::Property::ReadOnly, true);
|
||||
}
|
||||
|
||||
short DressUp::mustExecute() const
|
||||
|
|
|
@ -43,7 +43,7 @@ PROPERTY_SOURCE(PartDesign::ShapeBinder, Part::Feature)
|
|||
ShapeBinder::ShapeBinder()
|
||||
{
|
||||
ADD_PROPERTY_TYPE(Support, (0,0), "",(App::PropertyType)(App::Prop_None),"Support of the geometry");
|
||||
Placement.StatusBits.set(3, true);
|
||||
Placement.setStatus(App::Property::Hidden, true);
|
||||
}
|
||||
|
||||
ShapeBinder::~ShapeBinder()
|
||||
|
|
|
@ -43,7 +43,7 @@ ViewProviderDatumPoint::ViewProviderDatumPoint()
|
|||
|
||||
// SoMarkerSet won't be drawn if transparency is nonzero, so disabble it
|
||||
Transparency.setValue (0);
|
||||
Transparency.StatusBits.set ( 3, true ); //< make transparency hidden
|
||||
Transparency.setStatus(App::Property::Hidden, true); //< make transparency hidden
|
||||
}
|
||||
|
||||
ViewProviderDatumPoint::~ViewProviderDatumPoint()
|
||||
|
|
|
@ -48,16 +48,16 @@ ViewProviderShapeBinder::ViewProviderShapeBinder()
|
|||
sPixmap = "PartDesign_ShapeBinder.svg";
|
||||
|
||||
//make the viewprovider more datum like
|
||||
AngularDeflection.StatusBits.set(3, true);
|
||||
Deviation.StatusBits.set(3, true);
|
||||
DrawStyle.StatusBits.set(3, true);
|
||||
Lighting.StatusBits.set(3, true);
|
||||
LineColor.StatusBits.set(3, true);
|
||||
LineWidth.StatusBits.set(3, true);
|
||||
PointColor.StatusBits.set(3, true);
|
||||
PointSize.StatusBits.set(3, true);
|
||||
ShapeColor.StatusBits.set(3, true);
|
||||
Transparency.StatusBits.set(3, true);
|
||||
AngularDeflection.setStatus(App::Property::Hidden, true);
|
||||
Deviation.setStatus(App::Property::Hidden, true);
|
||||
DrawStyle.setStatus(App::Property::Hidden, true);
|
||||
Lighting.setStatus(App::Property::Hidden, true);
|
||||
LineColor.setStatus(App::Property::Hidden, true);
|
||||
LineWidth.setStatus(App::Property::Hidden, true);
|
||||
PointColor.setStatus(App::Property::Hidden, true);
|
||||
PointSize.setStatus(App::Property::Hidden, true);
|
||||
ShapeColor.setStatus(App::Property::Hidden, true);
|
||||
Transparency.setStatus(App::Property::Hidden, true);
|
||||
|
||||
//get the datum coloring sheme
|
||||
ShapeColor.setValue(App::Color(0.9f, 0.9f, 0.13f, 0.5f));
|
||||
|
|
Loading…
Reference in New Issue
Block a user