[vtkusers] Append two vtkGlyphSources in one single source connection

Boehm, Lukas Lukas.Boehm at cellent.de
Wed May 2 11:22:57 EDT 2012


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

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120502/1e693c2a/attachment.htm>
-------------- next part --------------
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120502/1e693c2a/attachment-0001.htm>


More information about the vtkusers mailing list