public

Inheritance Graph

graph BT
	FakeInstanceNode
	FakeInstanceNode --> Node
	click FakeInstanceNode "classMinSG_1_1FakeInstanceNode"
	click Node "classMinSG_1_1Node"

Description

Node to display a fake instance of another node.

A FakeInstanceNode object refers to another node inside the scene graph. When the FakeInstanceNode object is to be displayed, it changes the camera and displays the other node. The other node is displayed with the transformation of the FakeInstanceNode object applied. Therefore, the FakeInstanceNode can be used to display a node multiple times with different transformations, but without the need to have the node multiple times in memory.

Note: The FakeInstanceNode is no replacement for a real instance and might lead to problems when used. Only use it if there is no better alternative.

Author: Benjamin Eikel

Date: 2012-10-22

Public Functions

   
   
  FakeInstanceNode()
   
  ~FakeInstanceNode()
   
void doDisplay( FrameContext & context, const RenderParam & rp)
   
Node * getFakePrototype() const
   
void setFakePrototype( Node * prototype)

Documentation

function
MinSG::FakeInstanceNode::FakeInstanceNode

public inline
   
   
FakeInstanceNode( )

Defined in MinSG/Ext/Nodes/FakeInstanceNode.h:45


function
MinSG::FakeInstanceNode::~FakeInstanceNode

public virtual
   
   
~FakeInstanceNode( )

Defined in MinSG/Ext/Nodes/FakeInstanceNode.h:47


function
MinSG::FakeInstanceNode::doDisplay

public virtual
     
     
void doDisplay( FrameContext & context,
  const RenderParam & rp
)    

o Render the node. All matrix operations and states must be applied when called. This function is internally called by the default to display(…) method.

Defined in MinSG/Ext/Nodes/FakeInstanceNode.h:49


function
MinSG::FakeInstanceNode::getFakePrototype

public const inline
   
   
Node * getFakePrototype( ) const

Defined in MinSG/Ext/Nodes/FakeInstanceNode.h:51


function
MinSG::FakeInstanceNode::setFakePrototype

public inline
     
     
void setFakePrototype( Node * prototype )

Defined in MinSG/Ext/Nodes/FakeInstanceNode.h:54