comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL objects and names
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL objects and names [message #34053 is a reply to message #33970] Wed, 12 February 2003 14:17 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"David Fanning" wrote
> Rick Towler writes:
>
>> FWIW, all atomic graphics objects inherit IDLgrGraphic (structure
objects do
>> not).
>
> Well, there you go. That's why you can't make an IDLgrSurfacePlot
> object:
>
> Function idlgrsurfaceplot::init
> RETURN, 1
> END
>
> PRO idlgrsurfaceplot__define
> str = {idlgrsurfaceplot, inherits idlgrsurface, inherits idlgraxis}
> end
>
> And when I try to create the object, I get this:
>
> IDL> a=obj_new('idlgrsurfaceplot')
> % Conflicting or duplicate structure tag definition: IDLITCOMPONENT_TOP.
> % Execution halted at: IDLGRSURFACEPLOT__DEFINE 6 C:\IDL\David
> \idlgrsurfaceplot__define.pro
> % OBJ_NEW
> % $MAIN$
>

I know you did this as an academic exercise to prove the point but we don't
want to mislead people into thinking they can't build complex objects from
IDL's atoms because of the inheritance issue. A composite object like this
should inherit IDLgrModel and then "Add" atoms such as the surface, axes and
text.

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: missing a dimension in IDLgrVolume
Next Topic: Re: Questions about using CATCH

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:29:47 PDT 2025

Total time taken to generate the page: 0.16372 seconds