[Paraview-developers] Need help--Make an actor dragable/movable

Pandu tech pandu4tech at gmail.com
Thu Mar 22 11:43:31 EDT 2012


Hi,

vtkProp class has methods like PickableOn( ), DragableOn( ).

The class hierarchy is vtkProp <-- vtkActor2D <--- vtkLegendBoxActor

I tried
    this->LegendBoxActor->PickableOn();
    this->LegendBoxActor->DragableOn();

and added to my like this
    this->GetNonCompositedRenderer()->AddViewProp(this->LegendBoxActor);

This also did not work. The actor is not pickable/ dragable. If an actor is
added to the view, can it be dragable/pickable??

Please suggest your ideas regarding this.

Thanks in advance,
Pandu.

On Wed, Mar 21, 2012 at 4:03 PM, Pandu tech <pandu4tech at gmail.com> wrote:

> Hi,
>
> In MyCustomRenderView, I used vtkLegendBoxActor,  to associate a symbol
> with a text string.
>
> I added vtkLegendBoxActor to my view like this:
>
> this->GetNonCompositedRenderer()->AddActor(this->LegendBoxActor);
>
> I need to make this actor Dragable/Movable. I tried
> this->LegendBoxActor->SetDragable(1); but this is not working.
>
> Could you please suggest how to make my vtkLegendBoxActor
> movable/dragable??
>
> Thanks for your help in advance.
>
> Regards,
> Pandu.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120322/e71de83c/attachment.htm>


More information about the Paraview-developers mailing list