Commit e6f3bbb6 authored by T.J. Corona's avatar T.J. Corona

Expose actor properties to client/server logic

parent c1bd11fb
......@@ -1363,6 +1363,42 @@
min="0 0 0"
name="range" />
</DoubleVectorProperty>
<IntVectorProperty command="SetEdgeVisibility"
default_values="0"
name="EdgeVisibility"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>On some renderers it is possible to render the
edges of geometric primitives separately from the interior.
</Documentation>
</IntVectorProperty>
<IntVectorProperty command="SetRenderLinesAsTubes"
default_values="0"
name="RenderLinesAsTubes"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>The width of the line in pixels is controlled
by the LineWidth attribute. May not be supported on every
platform and the implementation may be half tubes, or
something only tube like in appearance.
</Documentation>
</IntVectorProperty>
<IntVectorProperty command="SetRenderPointsAsSpheres"
default_values="0"
name="RenderPointsAsSpheres"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>The size of the sphere in pixels is controlled
by the PointSize attribute. Note that half spheres may be
rendered instead of spheres.
</Documentation>
</IntVectorProperty>
<IntVectorProperty command="SetVertexVisibility"
default_values="0"
name="VertexVisibility"
number_of_elements="1">
<BooleanDomain name="bool" />
</IntVectorProperty>
<DoubleVectorProperty command="SetPointSize"
default_values="6.0"
name="PointSize"
......@@ -1866,7 +1902,15 @@
panel_visibility_default_for_representation="wireframe" />
<Property name="SelectionRenderStyle"
panel_visibility="never"/>
</PropertyGroup>
<Property name="RenderLinesAsTubes"
panel_visibility="never"/>
<Property name="RenderPointsAsSpheres"
panel_visibility="never"/>
<Property name="EdgeVisibility"
panel_visibility="never"/>
<Property name="VertexVisibility"
panel_visibility="never"/>
</PropertyGroup>
<PropertyGroup label="Lighting">
<Property name="SpecularPower"
......
......@@ -1170,11 +1170,31 @@ void vtkSMTKResourceRepresentation::SetLineColor(double r, double g, double b)
this->Property->SetEdgeColor(r, g, b);
}
void vtkSMTKResourceRepresentation::SetEdgeVisibility(int val)
{
this->Property->SetEdgeVisibility(val);
}
void vtkSMTKResourceRepresentation::SetOpacity(double val)
{
this->Property->SetOpacity(val);
}
void vtkSMTKResourceRepresentation::SetRenderLinesAsTubes(int val)
{
this->Property->SetRenderLinesAsTubes(val);
}
void vtkSMTKResourceRepresentation::SetRenderPointsAsSpheres(int val)
{
this->Property->SetRenderPointsAsSpheres(val);
}
void vtkSMTKResourceRepresentation::SetVertexVisibility(int val)
{
this->Property->SetVertexVisibility(val);
}
void vtkSMTKResourceRepresentation::SetPosition(double x, double y, double z)
{
this->Entities->SetPosition(x, y, z);
......
......@@ -135,6 +135,10 @@ public:
void SetLineWidth(double val);
void SetLineColor(double r, double g, double b);
void SetLookupTable(vtkScalarsToColors* val);
void SetEdgeVisibility(int val);
void SetRenderLinesAsTubes(int val);
void SetRenderPointsAsSpheres(int val);
void SetVertexVisibility(int val);
//@{
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment