I was wondering if anyone knows an easy way of changing the camera
position in vtk by supplying a 16 element double-type matrix. My current
efforts result in some odd behaviour, and as such I am not entirely sure
of the correctness of, my code (plus it is a mess) so I have not added
it to this message. I am currently programming in C++ using Visual
Studio 6 (i.e. in Windows).
I run again one problem of vtkFixedPointVolumeRaycastMapper.
vtkImageData* id= vtkImageData::New();
unsigned short *ptr= (unsigned short*) id->GetScalarPointer();
then I use loop to initialize the "id":
As I understand. I think 2 compoment data should be placed point by point in
this way : compoment1 of point1,compoment1 of point1,compoment1 of
point2,compoment1 of point2..... So If two components are the same,
vtkFixedPointVolumeRaycastMapper should provide the same result as one
those are other setting:
But finially I cannot get what I want. the Geometry I want is inside a
black box,but I think that black color should be transparent because I have
set the opacity . I snap a figure and attach here. Please let me know you
have a solution of my problem. Thanks
Can anybody help me with how to pick points and get
global cordinates of a fine element mesh using
c++,there was an example in tcl,i tried following
it,but doesn't work when i code in the c++ version.Any
help is welcome.Thx
Can anyone help me convert annotatepick.tcl to
I tried doing it but i'm having problems with how
AddObserver works in c++,that is passing that
annotatepick function as they did PROC annotatepick in
tcl.Really need your help.Thanks
On Thu, 19 Jan 2006, Gilbert Mensah wrote:
> I tried doing it but i'm having problems with how
> AddObserver works in c++,that is passing that
> annotatepick function as they did PROC annotatepick in
> tcl.Really need your help.Thanks
The AddObserver method expects a vtkCommand-compatible instance, whose
`Execute' method is invoked when the event is dispatched. To get your own
function called, you can set up a `vtkCallbackCommand' accordingly and pass it
where `annotatePickCallback' is your own function, which has to accept four
parameters, one of which is set to whatever you provided via `SetClientData'.
This mechanism is needed to pass custom data to your callback function.
> Can anyone help me convert annotatepick.tcl to
I have attached a C++ version of "annotatePick.tcl".
Feel free to contact me directly for further questions.