[Smtk-developers] Attribute question
Yumin Yuan
yumin.yuan at kitware.com
Mon Jun 29 18:11:24 EDT 2015
You can also do group view of group view :). Here is an example of that
from "ProteusPoisson.sbt" in cmb that Andy created
<GroupView Title="Physics" >
<InstancedView Title="PDE">
<InstancedAttributes>
<Att Type="physicsname">ModelName</Att>
<Att Type="analyticalSolution">analyticalSolution</Att>
<Att Type="coefficients">Coefficients</Att>
<Att Type="dummyInitialCondition">dummyInitialCondition</Att>
<Att Type="physicsTime">Physics Time???</Att>
<Att Type="sparseDiffusionTensors">Sparse Diffusion Tensors</Att>
<Att Type="LevelModelType">LevelModelType</Att>
</InstancedAttributes>
</InstancedView>
<GroupView Title="Boundary Conditions" Style="Tiled">
<InstancedView Title="">
<InstancedAttributes>
<Att Type="bcsTimeDependent">bcsTimeDependent</Att>
</InstancedAttributes>
</InstancedView>
<AttributeView Title="" ModelEntityFilter="f">
<AttributeTypes>
<Type>BoundaryCondition</Type>
</AttributeTypes>
</AttributeView>
</GroupView>
<AttributeView Title="Initial Conditions" ModelEntityFilter="r">
<AttributeTypes>
<Type>initialCondition</Type>
</AttributeTypes>
</AttributeView>
<InstancedView Title="Domain">
<InstancedAttributes>
<Att Type="gridalternate">gridalternate</Att>
</InstancedAttributes>
</InstancedView>
</GroupView>
Yumin
On Mon, Jun 29, 2015 at 6:05 PM, David Thompson <david.thompson at kitware.com>
wrote:
> > Yes - If you specify Style=Tiled in the group view - you would get the
> children views to be tiled instead of tabbed.
>
> Thanks, that worked! I didn't know about the Group view either, so double
> bonus!
>
> David
>
> >
> >> On Jun 29, 2015, at 4:03 PM, David Thompson <david.thompson at kitware.com>
> wrote:
> >>
> >> Hi all,
> >>
> >> I am writing an SMTK attribute template for an interactive simulation
> and have a question about views.
> >>
> >> I have a view named "Scene" that contains camera and lighting
> parameters. There are both global parameters and per-light parameters. I
> would like to allow an arbitrary number of lights to be created and have
> them displayed in the "Scene" view below the global parameters.
> >>
> >> Is it possible to have both instanced and singleton attributes in the
> the same view?
> >>
> >> Thanks,
> >> David
> >>
> >> PS. To be more clear, I would like to include the "Light" tab (2nd
> screenshot) into the "Scene" tab (1st screenshot).
> >>
> >> <Screen Shot 2015-06-29 at 3.59.05 PM.png><Screen Shot 2015-06-29 at
> 3.59.54 PM.png>
> >> _______________________________________________
> >> Smtk-developers mailing list
> >> Smtk-developers at smtk.org
> >> http://public.kitware.com/mailman/listinfo/smtk-developers
> >
>
> _______________________________________________
> Smtk-developers mailing list
> Smtk-developers at smtk.org
> http://public.kitware.com/mailman/listinfo/smtk-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20150629/06a03d34/attachment.html>
More information about the Smtk-developers
mailing list