FEM: replace tabs at line start by spaces
This commit is contained in:
@@ -203,94 +203,94 @@ void ViewProviderFemConstraintDisplacement::updateData(const App::Property* prop
|
||||
//OvG: Translation indication
|
||||
if(!xFree)
|
||||
{
|
||||
SbMatrix mx;
|
||||
mx.setTransform(base, rotx, SbVec3f(1,1,1));
|
||||
matricesx[idx] = mx;
|
||||
idx++;
|
||||
}
|
||||
if(!yFree)
|
||||
SbMatrix mx;
|
||||
mx.setTransform(base, rotx, SbVec3f(1,1,1));
|
||||
matricesx[idx] = mx;
|
||||
idx++;
|
||||
}
|
||||
if(!yFree)
|
||||
{
|
||||
SbMatrix my;
|
||||
my.setTransform(base, roty, SbVec3f(1,1,1));
|
||||
matricesy[idy] = my;
|
||||
idy++;
|
||||
}
|
||||
if(!zFree)
|
||||
SbMatrix my;
|
||||
my.setTransform(base, roty, SbVec3f(1,1,1));
|
||||
matricesy[idy] = my;
|
||||
idy++;
|
||||
}
|
||||
if(!zFree)
|
||||
{
|
||||
SbMatrix mz;
|
||||
mz.setTransform(base, rotz, SbVec3f(1,1,1));
|
||||
matricesz[idz] = mz;
|
||||
idz++;
|
||||
}
|
||||
SbMatrix mz;
|
||||
mz.setTransform(base, rotz, SbVec3f(1,1,1));
|
||||
matricesz[idz] = mz;
|
||||
idz++;
|
||||
}
|
||||
|
||||
//OvG: Rotation indication
|
||||
if(!rotxFree)
|
||||
//OvG: Rotation indication
|
||||
if(!rotxFree)
|
||||
{
|
||||
SbMatrix mrotx;
|
||||
mrotx.setTransform(base, rotx, SbVec3f(1,1,1));
|
||||
matricesrotx[idrotx] = mrotx;
|
||||
idrotx++;
|
||||
}
|
||||
if(!rotyFree)
|
||||
SbMatrix mrotx;
|
||||
mrotx.setTransform(base, rotx, SbVec3f(1,1,1));
|
||||
matricesrotx[idrotx] = mrotx;
|
||||
idrotx++;
|
||||
}
|
||||
if(!rotyFree)
|
||||
{
|
||||
SbMatrix mroty;
|
||||
mroty.setTransform(base, roty, SbVec3f(1,1,1));
|
||||
matricesroty[idroty] = mroty;
|
||||
idroty++;
|
||||
}
|
||||
if(!rotzFree)
|
||||
SbMatrix mroty;
|
||||
mroty.setTransform(base, roty, SbVec3f(1,1,1));
|
||||
matricesroty[idroty] = mroty;
|
||||
idroty++;
|
||||
}
|
||||
if(!rotzFree)
|
||||
{
|
||||
SbMatrix mrotz;
|
||||
mrotz.setTransform(base, rotz, SbVec3f(1,1,1));
|
||||
matricesrotz[idrotz] = mrotz;
|
||||
idrotz++;
|
||||
}
|
||||
SbMatrix mrotz;
|
||||
mrotz.setTransform(base, rotz, SbVec3f(1,1,1));
|
||||
matricesrotz[idrotz] = mrotz;
|
||||
idrotz++;
|
||||
}
|
||||
#else
|
||||
//OvG: Translation indication
|
||||
if(!xFree)
|
||||
//OvG: Translation indication
|
||||
if(!xFree)
|
||||
{
|
||||
SoSeparator* sepx = new SoSeparator();
|
||||
createPlacement(sepx, base, rotx);
|
||||
createDisplacement(sepx, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepx);
|
||||
}
|
||||
if(!yFree)
|
||||
SoSeparator* sepx = new SoSeparator();
|
||||
createPlacement(sepx, base, rotx);
|
||||
createDisplacement(sepx, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepx);
|
||||
}
|
||||
if(!yFree)
|
||||
{
|
||||
SoSeparator* sepy = new SoSeparator();
|
||||
createPlacement(sepy, base, roty);
|
||||
createDisplacement(sepy, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepy);
|
||||
}
|
||||
if(!zFree)
|
||||
SoSeparator* sepy = new SoSeparator();
|
||||
createPlacement(sepy, base, roty);
|
||||
createDisplacement(sepy, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepy);
|
||||
}
|
||||
if(!zFree)
|
||||
{
|
||||
SoSeparator* sepz = new SoSeparator();
|
||||
createPlacement(sepz, base, rotz);
|
||||
createDisplacement(sepz, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepz);
|
||||
}
|
||||
SoSeparator* sepz = new SoSeparator();
|
||||
createPlacement(sepz, base, rotz);
|
||||
createDisplacement(sepz, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepz);
|
||||
}
|
||||
|
||||
//OvG: Rotation indication
|
||||
if(!rotxFree)
|
||||
//OvG: Rotation indication
|
||||
if(!rotxFree)
|
||||
{
|
||||
SoSeparator* sepx = new SoSeparator();
|
||||
createPlacement(sepx, base, rotx);
|
||||
createRotation(sepx, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepx);
|
||||
}
|
||||
if(!rotyFree)
|
||||
SoSeparator* sepx = new SoSeparator();
|
||||
createPlacement(sepx, base, rotx);
|
||||
createRotation(sepx, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepx);
|
||||
}
|
||||
if(!rotyFree)
|
||||
{
|
||||
SoSeparator* sepy = new SoSeparator();
|
||||
createPlacement(sepy, base, roty);
|
||||
createRotation(sepy, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepy);
|
||||
}
|
||||
if(!rotzFree)
|
||||
SoSeparator* sepy = new SoSeparator();
|
||||
createPlacement(sepy, base, roty);
|
||||
createRotation(sepy, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepy);
|
||||
}
|
||||
if(!rotzFree)
|
||||
{
|
||||
SoSeparator* sepz = new SoSeparator();
|
||||
createPlacement(sepz, base, rotz);
|
||||
createRotation(sepz, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepz);
|
||||
}
|
||||
SoSeparator* sepz = new SoSeparator();
|
||||
createPlacement(sepz, base, rotz);
|
||||
createRotation(sepz, scaledheight, scaledwidth); //OvG: Scaling
|
||||
pShapeSep->addChild(sepz);
|
||||
}
|
||||
#endif
|
||||
n++;
|
||||
}
|
||||
|
||||
@@ -1,64 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="ViewProviderPy"
|
||||
Name="ViewProviderFemMeshPy"
|
||||
Twin="ViewProviderFemMesh"
|
||||
TwinPointer="ViewProviderFemMesh"
|
||||
Include="Mod/Fem/Gui/ViewProviderFemMesh.h"
|
||||
Namespace="FemGui"
|
||||
FatherInclude="Gui/ViewProviderPy.h"
|
||||
FatherNamespace="Gui"
|
||||
Constructor="false"
|
||||
Delete="false">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
|
||||
<UserDocu>ViewProviderFemMesh class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="applyDisplacement">
|
||||
<Documentation>
|
||||
<UserDocu></UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setNodeColorByScalars">
|
||||
<Documentation>
|
||||
<UserDocu>Sets mesh node colors using element list and value list.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setNodeDisplacementByVectors">
|
||||
<Documentation>
|
||||
<UserDocu></UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="NodeColor" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Postprocessing color of the nodes. The faces between the nodes gets interpolated. </UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="NodeColor" Type="Dict"/>
|
||||
</Attribute>
|
||||
<Attribute Name="ElementColor" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Postprocessing color of the elements. All faces of the element get the same color. </UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="ElementColor" Type="Dict"/>
|
||||
</Attribute>
|
||||
<Attribute Name="NodeDisplacement" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Postprocessing color of the the nodes. The faces between the nodes gets interpolated. </UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="NodeDisplacement" Type="Dict"/>
|
||||
</Attribute>
|
||||
<Attribute Name="HighlightedNodes" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>List of nodes which gets highlighted</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="HighlightedNodes" Type="List"/>
|
||||
</Attribute>
|
||||
<Attribute Name="VisibleElementFaces" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>A List of elements and faces which are actually shown. This are all surface faces of the mesh</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="VisibleElementFaces" Type="List"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
<PythonExport
|
||||
Father="ViewProviderPy"
|
||||
Name="ViewProviderFemMeshPy"
|
||||
Twin="ViewProviderFemMesh"
|
||||
TwinPointer="ViewProviderFemMesh"
|
||||
Include="Mod/Fem/Gui/ViewProviderFemMesh.h"
|
||||
Namespace="FemGui"
|
||||
FatherInclude="Gui/ViewProviderPy.h"
|
||||
FatherNamespace="Gui"
|
||||
Constructor="false"
|
||||
Delete="false">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
|
||||
<UserDocu>ViewProviderFemMesh class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="applyDisplacement">
|
||||
<Documentation>
|
||||
<UserDocu></UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setNodeColorByScalars">
|
||||
<Documentation>
|
||||
<UserDocu>Sets mesh node colors using element list and value list.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setNodeDisplacementByVectors">
|
||||
<Documentation>
|
||||
<UserDocu></UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="NodeColor" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Postprocessing color of the nodes. The faces between the nodes gets interpolated. </UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="NodeColor" Type="Dict"/>
|
||||
</Attribute>
|
||||
<Attribute Name="ElementColor" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Postprocessing color of the elements. All faces of the element get the same color. </UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="ElementColor" Type="Dict"/>
|
||||
</Attribute>
|
||||
<Attribute Name="NodeDisplacement" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Postprocessing color of the the nodes. The faces between the nodes gets interpolated. </UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="NodeDisplacement" Type="Dict"/>
|
||||
</Attribute>
|
||||
<Attribute Name="HighlightedNodes" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>List of nodes which gets highlighted</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="HighlightedNodes" Type="List"/>
|
||||
</Attribute>
|
||||
<Attribute Name="VisibleElementFaces" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>A List of elements and faces which are actually shown. This are all surface faces of the mesh</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="VisibleElementFaces" Type="List"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
Reference in New Issue
Block a user