[skip CI] [FEM] whitespace and comments to keep overview
This commit is contained in:
@@ -111,6 +111,8 @@ vtkDataObject* FemPostFilter::getInputData() {
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// clip filter
|
||||
PROPERTY_SOURCE(Fem::FemPostClipFilter, Fem::FemPostFilter)
|
||||
|
||||
FemPostClipFilter::FemPostClipFilter(void) : FemPostFilter() {
|
||||
@@ -183,6 +185,9 @@ DocumentObjectExecReturn* FemPostClipFilter::execute(void) {
|
||||
return Fem::FemPostFilter::execute();
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// data along a line
|
||||
PROPERTY_SOURCE(Fem::FemPostDataAlongLineFilter, Fem::FemPostFilter)
|
||||
|
||||
FemPostDataAlongLineFilter::FemPostDataAlongLineFilter(void) : FemPostFilter() {
|
||||
@@ -254,7 +259,6 @@ void FemPostDataAlongLineFilter::handleChangedPropertyType(Base::XMLReader& read
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void FemPostDataAlongLineFilter::onChanged(const Property* prop) {
|
||||
if (prop == &Point1) {
|
||||
const Base::Vector3d& vec1 = Point1.getValue();
|
||||
@@ -324,6 +328,9 @@ void FemPostDataAlongLineFilter::GetAxisData() {
|
||||
XAxisData.setValues(coords);
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// data point filter
|
||||
PROPERTY_SOURCE(Fem::FemPostDataAtPointFilter, Fem::FemPostFilter)
|
||||
|
||||
FemPostDataAtPointFilter::FemPostDataAtPointFilter(void) : FemPostFilter() {
|
||||
@@ -373,7 +380,6 @@ DocumentObjectExecReturn* FemPostDataAtPointFilter::execute(void) {
|
||||
return Fem::FemPostFilter::execute();
|
||||
}
|
||||
|
||||
|
||||
void FemPostDataAtPointFilter::onChanged(const Property* prop) {
|
||||
if (prop == &Center) {
|
||||
const Base::Vector3d& vec = Center.getValue();
|
||||
@@ -420,6 +426,9 @@ void FemPostDataAtPointFilter::GetPointData() {
|
||||
PointData.setValues(values);
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// scalar clip filter
|
||||
PROPERTY_SOURCE(Fem::FemPostScalarClipFilter, Fem::FemPostFilter)
|
||||
|
||||
FemPostScalarClipFilter::FemPostScalarClipFilter(void) : FemPostFilter() {
|
||||
@@ -475,7 +484,6 @@ DocumentObjectExecReturn* FemPostScalarClipFilter::execute(void) {
|
||||
return Fem::FemPostFilter::execute();
|
||||
}
|
||||
|
||||
|
||||
void FemPostScalarClipFilter::onChanged(const Property* prop) {
|
||||
|
||||
if (prop == &Value) {
|
||||
@@ -521,6 +529,8 @@ void FemPostScalarClipFilter::setConstraintForField() {
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// warp vector filter
|
||||
PROPERTY_SOURCE(Fem::FemPostWarpVectorFilter, Fem::FemPostFilter)
|
||||
|
||||
FemPostWarpVectorFilter::FemPostWarpVectorFilter(void) : FemPostFilter() {
|
||||
@@ -540,7 +550,6 @@ FemPostWarpVectorFilter::~FemPostWarpVectorFilter() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
DocumentObjectExecReturn* FemPostWarpVectorFilter::execute(void) {
|
||||
|
||||
std::string val;
|
||||
@@ -574,7 +583,6 @@ DocumentObjectExecReturn* FemPostWarpVectorFilter::execute(void) {
|
||||
return Fem::FemPostFilter::execute();
|
||||
}
|
||||
|
||||
|
||||
void FemPostWarpVectorFilter::onChanged(const Property* prop) {
|
||||
|
||||
if (prop == &Factor) {
|
||||
@@ -599,6 +607,8 @@ short int FemPostWarpVectorFilter::mustExecute(void) const {
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// cut filter
|
||||
PROPERTY_SOURCE(Fem::FemPostCutFilter, Fem::FemPostFilter)
|
||||
|
||||
FemPostCutFilter::FemPostCutFilter(void) : FemPostFilter() {
|
||||
|
||||
@@ -34,7 +34,7 @@ using namespace App;
|
||||
|
||||
PROPERTY_SOURCE(Fem::FemPostFunctionProvider, App::DocumentObject)
|
||||
|
||||
FemPostFunctionProvider::FemPostFunctionProvider(void): DocumentObject() {
|
||||
FemPostFunctionProvider::FemPostFunctionProvider(void) : DocumentObject() {
|
||||
|
||||
ADD_PROPERTY(Functions, (nullptr));
|
||||
}
|
||||
@@ -64,12 +64,14 @@ DocumentObjectExecReturn* FemPostFunction::execute(void) {
|
||||
}
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// plane function
|
||||
PROPERTY_SOURCE(Fem::FemPostPlaneFunction, Fem::FemPostFunction)
|
||||
|
||||
FemPostPlaneFunction::FemPostPlaneFunction(void): FemPostFunction() {
|
||||
FemPostPlaneFunction::FemPostPlaneFunction(void) : FemPostFunction() {
|
||||
|
||||
ADD_PROPERTY(Origin,(Base::Vector3d(0.0,0.0,0.0)));
|
||||
ADD_PROPERTY(Normal,(Base::Vector3d(0.0,0.0,1.0)));
|
||||
ADD_PROPERTY(Origin, (Base::Vector3d(0.0, 0.0, 0.0)));
|
||||
ADD_PROPERTY(Normal, (Base::Vector3d(0.0, 0.0, 1.0)));
|
||||
|
||||
m_plane = vtkSmartPointer<vtkPlane>::New();
|
||||
m_implicit = m_plane;
|
||||
@@ -84,11 +86,11 @@ FemPostPlaneFunction::~FemPostPlaneFunction() {
|
||||
|
||||
void FemPostPlaneFunction::onChanged(const Property* prop) {
|
||||
|
||||
if(prop == &Origin) {
|
||||
if (prop == &Origin) {
|
||||
const Base::Vector3d& vec = Origin.getValue();
|
||||
m_plane->SetOrigin(vec[0], vec[1], vec[2]);
|
||||
}
|
||||
else if(prop == &Normal) {
|
||||
else if (prop == &Normal) {
|
||||
const Base::Vector3d& vec = Normal.getValue();
|
||||
m_plane->SetNormal(vec[0], vec[1], vec[2]);
|
||||
}
|
||||
@@ -102,14 +104,14 @@ void FemPostPlaneFunction::onDocumentRestored() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// sphere function
|
||||
PROPERTY_SOURCE(Fem::FemPostSphereFunction, Fem::FemPostFunction)
|
||||
|
||||
FemPostSphereFunction::FemPostSphereFunction(void): FemPostFunction() {
|
||||
FemPostSphereFunction::FemPostSphereFunction(void) : FemPostFunction() {
|
||||
|
||||
ADD_PROPERTY(Radius,(5));
|
||||
ADD_PROPERTY(Center,(Base::Vector3d(1.0,0.0,0.0)));
|
||||
ADD_PROPERTY(Radius, (5));
|
||||
ADD_PROPERTY(Center, (Base::Vector3d(1.0, 0.0, 0.0)));
|
||||
|
||||
m_sphere = vtkSmartPointer<vtkSphere>::New();
|
||||
m_implicit = m_sphere;
|
||||
@@ -124,11 +126,11 @@ FemPostSphereFunction::~FemPostSphereFunction() {
|
||||
|
||||
void FemPostSphereFunction::onChanged(const Property* prop) {
|
||||
|
||||
if(prop == &Center) {
|
||||
if (prop == &Center) {
|
||||
const Base::Vector3d& vec = Center.getValue();
|
||||
m_sphere->SetCenter(vec[0], vec[1], vec[2]);
|
||||
}
|
||||
else if(prop == &Radius) {
|
||||
else if (prop == &Radius) {
|
||||
m_sphere->SetRadius(Radius.getValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user