Help Lines for Tools

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 23/02/2003 at 07:49, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.012 
Platform:      
Language(s) :   C.O.F.F.E.E  ;

---------
Can anyone tell me what is the correct way of drawing help lines for tool plugins.
For my problem is:
I move points, so i have to redraw the views each iteration in my mouse-drag loop.
If i use XOR-Lines, they flicker terribly.
If i use the drawing member function of the Tool Class, it looks like this.

    
    
    
    
    somewhere in MouseInput(..) :
    
    
    
    
    ..
    
    
    
    
    b_draw = TRUE;
    
    
    
    
    DrawViews(....)
    
    
    
    
    b_draw = FALSE;
    
    
    
    
    ..
    
    
    
    
    and  
    
    
    
    
    Draw(..) 
    
    
    
    
    {
    
    
    
    
            if(b_draw)
    
    
    
    
            {
    
    
    
    
                   bd->Line2d(..)
    
    
    
    
                   ....
    
    
    
    
            }
    
    
    
    
    }
    
    
    

The problem here is that i can't determine what view i am actually working in. e.g if the window is split up in 4 views, my help lines are drawn in each of them.
Thanks in advance
Michael

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 24/02/2003 at 07:32, xxxxxxxx wrote:

Use doc->GetActiveBaseDraw()

badtooth

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/02/2003 at 11:49, xxxxxxxx wrote:

this is exactly what i was looking for.
thank you.
Michael