Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] Manta::Group


Chronological Thread 
  • From: Li-Ta Lo <ollie@lanl.gov>
  • To: James Bigler <bigler@sci.utah.edu>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] Manta::Group
  • Date: Thu, 21 Feb 2008 13:00:24 -0700
  • Organization: Los Alamos National Lab


On Thu, 2008-02-21 at 12:54 -0700, James Bigler wrote:
> Li-Ta Lo wrote:
> > On Thu, 2008-02-21 at 12:24 -0700, James Bigler wrote:
> >> On Feb 21, 2008, at 12:20 PM, Li-Ta Lo wrote:
> >>
> >>> Hi,
> >>>
> >>> I am not so sure if I understand it right. Is Manta::Group designed in
> >>> according to the Composite design pattern? I mean Manta:Group is a
> >>> container for subclasses of Manta:Object and it can also recursively
> >>> contain instances of itself?
> >> I'm not sure what you mean by Composite design pattern, but think of  
> >> Group as a bucket of Objects, where any action that you can do on an  
> >> object is performed sequentially on all Objects in the Group.
> >>
> > 
> > What operations can we "do" to the Manta::Objects? I can't find
> > a method/class that can do something like translate/rotate an 
> > Manta::Object.
> 
> Look at Inteface/Object.h.  Those are the operations you can do with an 
> Object.
> 
> If you want to rotate/translate an object, you should do that with an 
> Instance.  Instance objects apply changes to the incoming rays and then 
> pass them down to their child object.
> 
> James

Does instanceRST mean Rotate/Scale/Translate?

Ollie







Archive powered by MHonArc 2.6.16.

Top of page