Hi,
find attached an xml that exposes the vtkPlatonicSolidSource in the paraview
sources menu. Load it from the tools->"Manage plugins" menu. At least it
will allow you to create a platonic solid in paraview GUI. But I don't
understand why you want to ask for it in C++.
Maybe you want a plugin (autostart or toolbar) to do that ? If yes, take a
look at the object builder :
pqApplicationCore* core = pqApplicationCore::instance();
pqObjectBuilder* builder = core->getObjectBuilder();
>From current core instance's object builder, you will be able to create
servers, sources, filters,...
'Hope that helps.
Jerome
2009/9/11 young_jh123 <[email protected]>
>
> I use Paraview on Windows.I want to render a vtk object on the Paraview
> gui,not the vtk window.
> I don't konw if the servermanager can do it.Just like below:
>
> plato = vtkPlatonicSolodSource()
> plate.SetSolidType(3)
>
> what should I do next to add the plato on the pipeline browser,and render
> it ?
> 2009-09-11
> ------------------------------
> young_jh123
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
<ServerManagerConfiguration>
<ProxyGroup name="sources">
<!-- ================================================================== -->
<SourceProxy name="PlatonicSolidSource" class="vtkPlatonicSolidSource"
label="Platonic Solid">
<Documentation
long_help="Create a platonic solid (e.g., cube,
icosahedron, etc.)"
short_help="Create a platonic solid">
Generates one of the first fifth platonic solid as a vtkPolyData -
Tetrahedron, Cube, Octahedron, Icosahedron and Dodecahedron
</Documentation>
<IntVectorProperty
name="SolidType"
command="SetSolidType"
number_of_elements="1"
default_values="3">
<EnumerationDomain name="enum">
<Entry value="0" text="Tetrahedron"/>
<Entry value="1" text="Cube"/>
<Entry value="2" text="Octahedron"/>
<Entry value="3" text="Icosahedron"/>
<Entry value="4" text="Dodecahedron"/>
</EnumerationDomain>
<Documentation>
This property specifies the type of the platonic solid.
</Documentation>
</IntVectorProperty>
</SourceProxy>
<!-- End PlatonicSolidSource -->
</ProxyGroup>
<!-- End Sources Group -->
</ServerManagerConfiguration>_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview