[vtkusers] Append two vtkGlyphSources in one single source connection
Darshan Pai
darshanpai at gmail.com
Wed May 2 22:05:32 EDT 2012
I haven't tried this out , but you can try this .
Since vtkGlyphSource2d returns a vtkPolyData , why not use an
vtkAppendPolyData and combine the outputs from the two sources together and
then set it to the SourceConnection .
I think that should work .
Regards
Darshan
On Wed, May 2, 2012 at 11:22 AM, Boehm, Lukas <Lukas.Boehm at cellent.de>wrote:
> Hello,****
>
> ** **
>
> I‘ve got the following code and this works fine:****
>
> ** **
>
> vtkGlyphSource2D cross = vtkGlyphSource2D.New();****
>
> cross.SetFilled(0);****
>
> cross.SetGlyphTypeToCross();****
>
> ** **
>
> vtkGlyphSource2D circle = vtkGlyphSource2D.New();****
>
> circle.SetGlyphTypeToCircle();****
>
> ** **
>
> vtkGlyphSource2D square = vtkGlyphSource2D.New();****
>
> square.SetGlyphTypeToSquare();****
>
> ** **
>
> vtkGlyph2D glyph = vtkGlyph2D.New();****
>
> glyph.SetColorModeToColorByScalar();****
>
> glyph.SetScaleModeToDataScalingOff();****
>
> glyph.SetIndexModeToScalar();****
>
> ** **
>
> glyph.SetSourceConnection(0, cross.GetOutputPort());****
>
> glyph.SetSourceConnection(1, circle.GetOutputPort());****
>
> glyph.SetSourceConnection(2, square.GetOutputPort());****
>
> ** **
>
> But now I want to append (or combine) an output port to an existing source
> connection. So that source connections with index 0 shows cross as well as
> circle. I have no idea how I can solve this problem. ****
>
> ** **
>
> Do you understand what I mean or do you need more information to help? Do
> you have any suggestions for this problem? ****
>
> ** **
>
> Thank you very much!****
>
> Lukas****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> cellent Aktiengesellschaft
> Vorsitzender des Aufsichtsrates: Rudolf Zipf
> Vertretungsberechtigter Vorstand: Andreas Schwegler
> Gerichtsstand: Amtsgericht Stuttgart, HRB 22791
> Umsatzsteuer-ID: DE 226611517
> Firmensitz: Stuttgart
>
> Diese EMail sowie etwaige Anlagen sind ausschliesslich fuer den Adressaten
> bestimmt und koennen vertrauliche oder gesetzlich
> geschuetzte Informationen enthalten. Wenn Sie nicht der
> bestimmungsgemaesse Empfaenger sind, unterrichten Sie bitte den Absender
> und vernichten Sie diese Mail. Anderen als dem bestimmungsgemaessen
> Adressaten ist es untersagt, diese EMail zu speichern,
> weiterzuleiten oder ihren Inhalt, auf welche Weise auch immer, zu
> verwenden. Wir verwenden aktuelle Virenschutzprogramme.
> Fuer Schäden, die dem Empfaenger gleichwohl durch von uns zugesandte, mit
> Viren befallene EMails entstehen, schliessen wir jede Haftung aus.
>
> The information contained in this e-mail or attachments is intended only
> for its addressee and may contain confidential and/or
> privileged information. If you have received this e-mail in error, please
> notify the sender and delete the e-mail. If you are not the
> intended recipient, you are hereby notified, that saving, distribution or
> use of the content of this e-mail in any way is prohibited.
> We use updated virus protection software. We do not accept any
> responsibility for damages caused anyhow by viruses transmitted via e-mail.
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120502/06b9028c/attachment.htm>
More information about the vtkusers
mailing list