Hi,

the operator-> method of a SomeClassPtr returns the
associated SomeClass. As most of the FieldContainers
in OpenSG are derived from AttachmentContainer, it may
look as if an AC were returned.

In your case, the operator-> of CameraPtr returns a
Camera object, which is derived from CameraBase, where
we find (OSGCameraBase.h):

virtual       Real32 &getNear(void);
virtual const Real32 &getNear(void) const;

[
If you're still interested in Attachments, have a look
at
http://www.opensg.org/doc-1.4.0/PageSystemFieldsNFieldContainers.html
(bottom of page) or Tutorials/15attachments.cpp of the
source code.
]

Björn

 --- Mathias Lorente <[EMAIL PROTECTED]>
schrieb: 
> Hello,
> 
> Could someone explains me in few words how
> AttachmentContainer works ?
> 
> For example, if I have an object firstCam of type
> CameraPtr, I can do :
> firstCam->getNear() ; and get appropriate result.
> But I've just taken a 
> look to the operator->() and I noticed that it
> returns an 
> AttachmentContainer pointer. I don't understand how
> the member function 
> getNear of the class Camera can be correctly called
> ... That's my problem !
> 
> Thanks for your help
> Mathias
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
>
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/opensg-users
>  


        

        
                
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to