[IGSTK-Users] How to represent a GroupObject ?
Patrick Cheng
cheng at isis.georgetown.edu
Tue Mar 27 10:23:46 EDT 2007
Hi Sophie,
1. Is m_Point an EllipsoidSpatialObject?
2. Right now EllipsoidRepresentation class assume it takes only one
single SptialObject, not a group of objects. What you can do is to make
a GroupEllipsoidRepresentation class. Then, around line 112 in
igstkEllipsoidRepresentation.cxx class, loop through the GroupObject
tree to generate the VTK actor for every single object.
Let me know if this works for you.
Patrick
Sophie Blestel wrote:
> Yes, but what I would like to do is to display my GoupObject :
> I have done :
> m_PointsGroup = GroupObjectType::New();
>
> while(....)
> {
> transform.SetTranslation(.......);
> m_Point->RequestSetTransform( transform );
> m_PointsGroup->RequestAddObject(m_Point);
> }
> And I obtain a few points that I'd like to display. If I do :
> m_PointsGroupRepresentation = EllipsoidRepresentationType::New();
> m_PointsGroupRepresentation->RequestSetEllipsoidObject(m_PointsGroup->GetObject(1));
>
> it doesn't work....
>
>
>
>
> 2007/3/26, Patrick Cheng <cheng at isis.georgetown.edu
> <mailto:cheng at isis.georgetown.edu>>:
>
> Hi Sophie,
>
> There is no points object in IGSTK yet, you can try to use a small
> ellipsoid object to represent a point. or you can try to display them as
> mesh.
>
> Patrick
>
> ---------- Original Message ----------------------------------
> From: "Sophie Blestel" <sophie.blestel at gmail.com
> <mailto:sophie.blestel at gmail.com>>
> Date: Mon, 26 Mar 2007 10:55:23 +0200
>
> >Hi,
> >
> >I would like to represent a group of points with igstk (and fltk).
> I have
> >created a igstk::groupObject with all my points but I don't know
> how to
> >display it in my views fltk. I tried a few things but it didn't work.
> >
> >Thanks,
> >
> >Sophie
> >
> >
> >
>
>
More information about the IGSTK-Users
mailing list