Hi,

thank you very much. That solved this problem. Is there also a way to
hide the bounding box?

Best Regards,

Martin

On 18.03.2014 19:10, Kislinskiy, Stefan wrote:
> Hi,
> 
> you can retrieve Geometry3D instances from your TimeGeometry instances, e.g., 
> by calling GetGeometryForTimestep().
> 
> Best,
> Stefan
> ________________________________________
> Von: Martin Klemm [martin.kl...@hs-offenburg.de]
> Gesendet: Dienstag, 18. März 2014 15:37
> An: mitk-users@lists.sourceforge.net
> Betreff: [mitk-users] Expanding Bounding Boxes
> 
> Hello,
> 
> is there a way to set minimum values for the bounding box? What I want
> to do is the following:
> 
> mitk::DataStorage::Pointer ds = _objContainer->GetDataStorage();
> 
> // get all nodes that have not set "includeInBoundingBox" to false and
> compute bounding box
>    if (ds.IsNull())
>       return;
>    mitk::NodePredicateNot::Pointer pred = mitk::NodePredicateNot::New(
>       mitk::NodePredicateProperty::New("includeInBoundingBox",
> mitk::BoolProperty::New(false)));
>    mitk::DataStorage::SetOfObjects::ConstPointer rs = ds->GetSubset(pred);
>    mitk::TimeGeometry::Pointer bounds =
>       ds->ComputeBoundingGeometry3D(rs, "visible");
> 
>    if (bounds.IsNull())
>       return;
> 
> bounds->SetExtentInMM(0, 100);
> bounds->SetExtentInMM(1, 100);
> bounds->SetExtentInMM(2, 100);
> 
> The problem is that the last call (SetExtentInMM) does not exist for
> TimeGeometry, however, it exists for Geometry3D. Does anyone knows a way
> to solve this?
> 
> Thank you very much.
> 
> Best regards
> 
> 
> Martin
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> mitk-users mailing list
> mitk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mitk-users
> 

-- 


Martin Klemm
Hochschule Offenburg
Badstraße 24
77652 Offenburg
Tel. +49 781 / 205 - 4681

-----BEGIN P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qgu59P
P59ThEGwufSeLMBf4eCidltWdh9fjqZwYnz6Y8ASjJGVgf12i2P8Mpbx7QHYecHt
nnvj4x8t9yw9h1QPdfvTIFvqp0L2MDdeAdnFhMPhNHY7RtudLuQlLDIGFqPGScJQ
EKiH3Upc9HADUO4vh6mT6OzOWhLu6cwu1XCmh74sKD+UblgOG/fd7AhDABEBAAGJ
ASUEGAECAA8FAlLmUekCGwwFCQlmAYAACgkQtianP0hmYim/JggAlcwN5b/qBObo
65/GMIX4VXb+f6/U7F6tc/KOFyypWYN6aJ3StwBbkFfeEd2ZeuTmMNyG49rxBUpl
z9JcEB27YPYGGh1aJWeVDpqSV6VMTSnJC+Dlsm1eAktpWhTCgs9yeh2RY+HWfIil
XR97+TiaznySTNqVs94zX7ynBg1Tjh+tZJgU8HUXAsuWQACWrmKHVH+ggSaBePmH
5em0wBkQD+VxYlVe00lNRnJvBtP0cRys4mRDWJYJb6mlDxQ8nv8krsDT6lUeRsYU
ct8cU8YCERNyAJ+bH2y14ymer1k+vhZaHc5Fwrj9Jwbs1YVLpOZeaX66kDdkfWbR
tjzbWAp3EQ==
=6Xht
-----END PGP PUBLIC KEY BLOCK-----

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to