Message: Manipulate Single Voxel (Touchable) to have different color Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Manipulate Single Voxel (Touchable) to have different color 

Forum: Medical Applications
Date: 23 Apr, 2014
From: <geant4president>

Hello, is there any way to change a voxel's color in the G4Parameterized geometry AFTER drawing/constructing it? I want to be able to visualize different regions in the phantom (e.g. mark an organ at risk). There should not be any effect on the geometry itself, I am just trying to affect visualization. I am using the 4.9.6p01 build and the OGL viewer.

What I already tried is navigating to a voxel touchable, asking for the logical volume and setting the VisAttributes. This does not work, changes have no effect on the drawn geometry. I assume the reason for this is the "ComputeMaterial" function, which - as far as I read (?) - is called during visualisation and therefore updating the color to the original material one.

As only visualization change is needed, I assume there should be a way to manipulate the scene. The OGL interface view also has a "scene tree", in which all the phantom voxels are clickable and color-manipulable. Therefore it "should" be doable programmatically.

However, if anybody has an idea (maybe even another approach) to visualize 3D regions in the geometry without affecting geometry itself, I would highly appreciate sharing it with me.

Thanks in advance!

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Manipulate Single Voxel (Touchable) to have different color   (John Allison - 23 Apr, 2014)
1 Ok: Re: Manipulate Single Voxel (Touchable) to have different color   (geant4president - 02 May, 2014)
2 None: Re: Manipulate Single Voxel (Touchable) to have different color   (Joseph Perl - 23 Apr, 2014)
 Add Message Add Message
to: "Manipulate Single Voxel (Touchable) to have different color"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]