[Paraview] default representation?
Cory Quammen
cory.quammen at kitware.com
Fri Oct 3 09:11:19 EDT 2014
Bertwim,
Ken is right, the default representation is chosen by the view in
which the source output is displayed. See, for instance,
ParaView/ParaViewCore/ServerManager/Rendering/vtkSMRenderViewProxy::GetRepresentationType()
for the logic used to pick the default representation used in the 3D View.
- Cory
On Thu, Oct 2, 2014 at 10:50 PM, B.W.H. van Beest <bwvb at xs4all.nl> wrote:
> It is just a box, sphere, etc (originating from vtkCubeSource,
> vtpSPhereSource).
> I want to display them initially in a wireframe representation.
>
> Regards,
> Bertwim
>
> On 10/02/2014 08:38 PM, Moreland, Kenneth wrote:
>> As far as I know (and anyone else on the list is welcome to correct me),
>> you cannot directly change the default representation for the output of a
>> source/filter. The default representation is automatically chosen based on
>> the type of the data and the view it is being shown in.
>>
>>
>> What kind of data is the output from your source?
>>
>> -Ken
>>
>> On 10/2/14, 10:37 AM, "B.W.H. van Beest" <bwvb at xs4all.nl> wrote:
>>
>>> But how can I set the default, especially for a new source?
>>>
>>>
>>> Regards,
>>> Bertwim
>>>
>>> On 10/02/2014 04:55 PM, Moreland, Kenneth wrote:
>>>> The default representation is based more on the data type than the
>>>> filter
>>>> setup. I forget all the rules, but I believe that structured data types
>>>> (like uniform and non-uniform rectilinear grids and curvilinear grids)
>>>> default to outline. Unstructured data types (like poly data or
>>>> unstructured grids) default to surface unless the size is larger than
>>>> some
>>>> threshold (which can be changed in settings). Multiblock data sets
>>>> default
>>>> to whatever is appropriate for the data type in the blocks.
>>>>
>>>>
>>>> The rational for this behavior is that an unstructured data type likely
>>>> represents some geometry of importance whereas a regular grid more
>>>> likely
>>>> represents some region in space where the relevant structure is
>>>> internal.
>>>>
>>>> -Ken
>>>>
>>>> On 10/2/14, 7:53 AM, "B.W.H. van Beest" <bwvb at xs4all.nl> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I noticed that sources like a box, sphere etc., are always displayed
>>>>> initially with a surface representation, after which ione can set it
>>>>> manually to something else, e.g. a wireframe. Where is this preference
>>>>> being set? I cannot find it in the sources.xml file or in any of the
>>>>> other xml files, but maybe I don't recognise it.
>>>>>
>>>>> Background of this is that I would like to change this default
>>>>> behaviour, in particular for some new sources I'm creating in a plugin.
>>>>> (The sources that are derived from the standard ones.)
>>>>>
>>>>> Kind Regards,
>>>>> Bertwim
>>>>>
>>>>> _______________________________________________
>>>>> 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://public.kitware.com/mailman/listinfo/paraview
>>>>
>>
>>
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/paraview
More information about the ParaView
mailing list