Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Help Lines for Tools

    SDK Help
    0
    3
    308
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post