Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] Manta::Group


Chronological Thread 
  • From: Thiago Ize <thiago@cs.utah.edu>
  • To: ollie@lanl.gov
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] Manta::Group
  • Date: Thu, 21 Feb 2008 12:57:07 -0700

Wrap the Object in a Model/Instances/Instance.h class that has the AffineTransform set to the translation/rotation that you like. Depending on the derived Object, you might also be able to manually modify it.

Thiago

Li-Ta Lo wrote:
1203622645.3959.97.camel@exponential.lanl.gov" type="cite">
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.

Ollie

  



Archive powered by MHonArc 2.6.16.

Top of page