src/jwm_draw_framing/draw_framing_main_v0.56.rb
#onUserText
#------------------
# The draw method is called whenever the view is refreshed.	It lets the
# tool draw any temporary geometry that it needs to.
onUserText
The draw method is called whenever the view is refreshed.      It lets the
tool draw any temporary geometry that it needs to.
onUserText The draw method is called whenever the view is refreshed . It lets the tool draw any temporary geometry that it needs to .
def draw(view)
		if( @ip1.valid? )
		if( @ip1.display? )
			@ip1.draw(view)
			@drawn = true
		end
		if( @ip2.valid? )
			@ip2.draw(view) if( @ip2.display? )
			if view.inference_locked?
			line_width = 2
			else
			line_width = 1
			end
			view.line_width = line_width
			view.set_color_from_line(@ip1, @ip2)
			self.draw_geometry(@ip1.position, @ip2.position, view)
			@drawn = true
		end
		end
	end
def draw ( view ) if ( @ip1 . valid? ) if ( @ip1 . display? ) @ip1 . draw ( view ) @drawn = true end if ( @ip2 . valid? ) @ip2 . draw ( view ) if ( @ip2 . display? ) if view . inference_locked? line_width = 2 else line_width = 1 end view . line_width = line_width view . set_color_from_line ( @ip1 , @ip2 ) self . draw_geometry ( @ip1 . position , @ip2 . position , view ) @drawn = true end end end
onUserText
The draw method is called whenever the view is refreshed.
onUserText The draw method is called whenever the view is refreshed .
#puts "draw(view) called" # The set_color_from_line method determines what color # to use to draw a line based on its direction.	For example # red, green or blue. ##view.line_stipple = @opts['stipple']
view
<not_specific>