Detailed Description
- See also:
- Class
ReferenceTarget, Class Interface, Class Control, Class ImageFilter, Class TVNodeNotify.
- Description:
- This class provides an interface to Track View Nodes. A Track
View Node is simpy a class that has zero or more sub-track view
nodes and zero or more sub-controllers. This is mainly used to
provide a place for Global Variable tracks (labeled "Global Tracks"
in Track View) and Video Post tracks (labelled "Video Post" in
Track View).
The TrackViewNode sub-nodes and sub-controllers are identified by a
unique ID in the form of a Class_ID variable. This does not
necessarily have to be the Class_ID of an existing plug-in,
however plug-ins may wish to use their Class_ID for any items they add to be
sure they are unique.
The Interface class
provides access to the root track view node:
virtual ITrackViewNode
*GetTrackViewRootNode()=0;
From the root track view node, new nodes may be added. There are
two defined sub nodes identified by the following #defined
Class_IDs:
#define GLOBAL_VAR_TVNODE_CLASS_ID Class_ID(0xb27e9f2a,
0x73fad370)
#define VIDEO_POST_TVNODE_CLASS_ID Class_ID(0x482b8d30,
0xb72c8511)
These can be retreived by calling GetNode()
on the track view root node and passing in one of the above
IDs.
All methods of this class are implemented by the system.
Note: Developers can also create their own track view node using
the following global function:
#include <tvnode.h>
List of all
members.
Member Function Documentation
virtual void AddNode |
( |
ITrackViewNode * |
node, |
|
|
MCHAR * |
name, |
|
|
Class_ID |
cid, |
|
|
int |
pos =
TVNODE_APPEND |
|
) |
|
[pure virtual] |
- Parameters:
- ITrackViewNode *node
Points to the Track View Node to add.
MCHAR *name
The name for the node that appears in Track View.
Class_ID
cid
The Class_ID which
identifies the plug-in that added the node.
int pos=TVNODE_APPEND
The position in the list of nodes where this one is added. If this
defaults to TVNODE_APPEND the node is added at the end of
the list.
Implemented in Wrangler.
virtual void AddController |
( |
Control * |
c, |
|
|
MCHAR * |
name, |
|
|
Class_ID |
cid, |
|
|
int |
pos =
TVNODE_APPEND |
|
) |
|
[pure virtual] |
- Parameters:
- Control
*c
Points to the controller to add.
MCHAR *name
The name that will appear in Track View.
Class_ID
cid
The Class_ID of the
plug-in that adds the controller.
int pos=TVNODE_APPEND
The position in the list where the controller is added. If this
defaults to TVNODE_APPEND the controller is added at the end
of the list.
Implemented in Wrangler.
virtual int FindItem |
( |
Class_ID |
cid |
) |
[pure virtual] |
virtual void RemoveItem |
( |
int |
i |
) |
[pure virtual] |
- Parameters:
- int i
The zero based index into the table of the item to remove.
Implemented in Wrangler.
virtual void RemoveItem |
( |
Class_ID |
cid |
) |
[pure virtual] |
virtual Control* GetController |
( |
int |
i |
) |
[pure virtual] |
- Parameters:
- int i
The zero based index of the sub-controller.
Implemented in Wrangler.
- Parameters:
- int i
The zero based index of the sub-node.
Implemented in Wrangler.
virtual int NumItems |
( |
|
) |
[pure virtual] |
virtual void SwapPositions |
( |
int |
i1, |
|
|
int |
i2 |
|
) |
|
[pure virtual] |
- Parameters:
- int i1
The zero based index into the table of one of the items to
swap.
int i2
The zero based index into the table of the other item to swap.
Implemented in Wrangler.
virtual MCHAR* GetName |
( |
int |
i |
) |
[pure virtual] |
- Parameters:
- int i
The zero based index into the table of the item whose name to
return.
Implemented in Wrangler.
virtual void SetName |
( |
int |
i, |
|
|
MCHAR * |
name |
|
) |
|
[pure virtual] |
- Parameters:
- int i
The zero based index into the table of the item whose name to
set.
MCHAR *name
The new name for the sub-node or sub-controller.
Implemented in Wrangler.
virtual void RegisterTVNodeNotify |
( |
TVNodeNotify * |
notify |
) |
[pure virtual] |
- Parameters:
- TVNodeNotify *notify
Points to the callback object to register.
Implemented in Wrangler.
virtual void UnRegisterTVNodeNotify |
( |
TVNodeNotify * |
notify |
) |
[pure virtual] |
- Parameters:
- TVNodeNotify *notify
Points to the callback object to register.
Implemented in Wrangler.
virtual void HideChildren |
( |
BOOL |
chide |
) |
[pure virtual] |
- Parameters:
- BOOL chide
Pass TRUE to have children hidden; FALSE to have them
visible.
Implemented in Wrangler.
ITrackViewNode ITrackViewNode
ITrackViewNode ITrackViewNode ITrackViewNode ITrackViewNode
ITrackViewNode ITrackViewNode ITrackViewNode ITrackViewNode
ITrackViewNode ITrackViewNode
ITrackViewNode ITrackViewNode ITrackViewNode ITrackViewNode
ITrackViewNode ITrackViewNode ITrackViewNode ITrackViewNode