Re: Still having problems with combining a contour and a line plot objects [message #50438] |
Mon, 02 October 2006 09:23 |
clivecook59
Messages: 26 Registered: November 2005
|
Junior Member |
|
|
Great, setting the DEPTH_WRITE_DISABLE in the model object worked.
thank you
Clive
David Fanning wrote:
> Karl Schultz writes:
>
>> Yup, not enough clues. But here are some things to try.
>>
>> 1) You can change the drawing order by changing the order the graphic
>> objects are inserted into the grModel. Or use the grContainer methods to
>> move objects around in the model.
>>
>> 2) Check out the DEPTH_OFFSET property that is available in most graphic
>> objects.
>>
>> 3) You can use the ZCOORD_CONV property to shift things around in Z as
>> well.
>
> As always with object graphics, there are about 15 ways
> to skin the cat. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Still having problems with combining a contour and a line plot objects [message #50441 is a reply to message #50438] |
Mon, 02 October 2006 09:05  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
clivecook59@gmail.com writes:
> Ok, here goes, I place both my contour and line plot objects into a
> object model which i then place into a view object
>
> plotModel->Add,contour
> plotModel->Add,line_plot
>
> plot_view->Add,plotModel (where plot_view is a view object)
>
> This is then displayed in my draw widget. I need the line plot to
> display over the top of top contour.
OK, try setting the keyword DEPTH_WRITE_DISABLE either in
your view object (which your contour and line plot inherit),
or in both your contour and line plot objects. With depth
disabled, the order should depend on the order in which they
are drawn.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Still having problems with combining a contour and a line plot objects [message #50443 is a reply to message #50441] |
Mon, 02 October 2006 08:44  |
clivecook59
Messages: 26 Registered: November 2005
|
Junior Member |
|
|
David Fanning wrote:
> clivecook59@gmail.com writes:
>
>> I am still trying to plot both a contour and a line plot object in the
>> same window. My problem seems to be the order in which the objects are
>> displayed. My contour displays fine, however my line plots are are
>> being hidden by the contour. How can i rearrange the order in which the
>> objects are displayed, so i can bring the line plot to the front?
>
> The simple answer is "reverse the order in which you
> draw them", but I'm not at all certain this applies in
> this case. You give us far too few clues to help much. :-(
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Ok, here goes, I place both my contour and line plot objects into a
object model which i then place into a view object
plotModel->Add,contour
plotModel->Add,line_plot
plot_view->Add,plotModel (where plot_view is a view object)
This is then displayed in my draw widget. I need the line plot to
display over the top of top contour.
thanks
Clive
|
|
|