[vtkusers] vtk-Macros
Steffen Oeltze
Steffen.Oeltze at Student.Uni-Magdeburg.DE
Mon Nov 4 09:26:32 EST 2002
Zitiere "Koning, P.J.H. de (LKEB)" <P.J.H.de_Koning at lumc.nl>:
> 04/11/2002 15:12:02, Steffen Oeltze
> <Steffen.Oeltze at Student.Uni-Magdeburg.DE> wrote:
>
> vtkSetGet.h
Thanks for your fast response. Unfortunately, I'm not a C-expert and I have no
idea what the following code does. How is the cursor position set by this
snippet of code ?
#define vtkSetVector3Macro(name,type) \
virtual void Set##name (type _arg1, type _arg2, type _arg3) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting " <<
#name " to (" << _arg1 << "," << _arg2 << "," << _arg3 << ")"); \
if ((this->name[0] != _arg1)||(this->name[1] != _arg2)||(this->name[2] !=
_arg3)) \
{ \
this->name[0] = _arg1; \
this->name[1] = _arg2; \
this->name[2] = _arg3; \
this->Modified(); \
} \
}; \
virtual void Set##name (type _arg[3]) \
{ \
this->Set##name (_arg[0], _arg[1], _arg[2]);\
}
>
> >Hi,
> >
> >I'm using a vtkImageCursor3D and recently I tried to figure out how
> the
> >vtkImageCursor3D->SetCursorPosition() procedure works. The only thing
> I
> >discovered was a macro called vtkSetVector3Macro(name, type). Does
> anybody
> >know where to find the definition of this macro ?
> >
> >Steffen Oeltze
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>
>
More information about the vtkusers
mailing list