ftp.nice.ch/pub/next/developer/objc/api/intuitiv3d_API.s.tar.gz#/i3dApi/Documentation/Classes/CX3DNode.rtf

This is CX3DNode.rtf in view mode; [Download] [Up]

 intuitiv'3d API documentation Copyright ©1993 by Cub'x SystÜmes. All Rights Reserved.






CX3DNode 






Inherits From:	NodeView : View : Responder :Object

Declared In:	i3d/CX3DNode.h





Class Description

CX3DNode is an abstract superclass used to implement all classes of object that are node of the 3D object tree. Subclasses of CX3DNode are currently some set of objects ( Set , Arranger , LightSet, ... ) 
If you want to make a leaf, you must make a subclass of CX3DObject. If you want to make a new shader, you must make a subclass of CX3DShader.


This file is a documentation for features specific to CX3DNode. The file CX3DObjectAndCX3DNodeMethod.rtf is a documentation for methods that you can use on CX3DObject and CX3DNode instance.

This documentation describes only instance variables and methods that you can use or overload in your own subclasses. Other methods are not documented and are subject to change.

Instance Variables

  float scale[3];
  float rotate[3];
  float translate[3];
  float oldValue[3];
  RtMatrix transform;
  RtMatrix rotateMatrix;
  RtMatrix oldRotateMatrix;
  int  surfaceType;
  id shape;
  unsigned char visible;
  unsigned int precision;
  id metaShader;
  BOOL shouldDisplayAsBBox;
  BOOL transformDirty;
  int  lastUsedInsp;
  RtBound bbox; 
  unsigned long totalNumberOfObject; 


scale 	scale transformation.

rotate 	rotate transformation.

translate 	translate transformation.

surfaceType	A variable to store the surface type 

shape	A N3DShape instance

visible	A bit field to store visibility flags

precision	Drawing precision (tesselation)

bbox	Intermediate bounding box storage

oldValue	Private

metaShader	Private	

shouldDisplayAsBBox	Private

transform	Private

rotateMatrix	Private

oldRotateMatrix	Private

transformDirty	Private

lastUsedInsp	Private


totalNumberOfObject	Private

Method Types

Initializing, freeing and copying
	- init
	- copy
	- free


Adding and removing object
	- addObject:
	- remObject:
	- willAcceptObject:





Instance Methods

addObject
	- addObject: anObject
Add anObject as a new leaf of the node. anObject must be a subclass of CX3DObject or CX3DNode.
Return self.

See also: - remObject


init
	- init
Initializes and returns the receiver, a new CX3DNode instance. The subclass should overload the - init method to initialize its new instance variables. Subclass's version of - init should began with a [super init] call.


copy
	- copy
Duplicate the receiver. Return the new instance. You should overload this and method and duplicate your own instance variable.  Your implementation of - copy should call [super copy] in order to duplicate the subtree.


free
	- free
Free the memory used by the receiver.  You should overload this method in order to free the memory used by your own instance variables.


remObject
	- remObject: anObject
Remove anObject, a leaf of the receiver from the list of leaf. 
Return self.

See also: - addObject

willAcceptObject:
	- (BOOL) willAcceptObject: anObject
This method return YES if anObject is acceptable by the receiver and NO otherwise. You can overload this method.



 



These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.