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