You are here: Home Repository Vleaf empty model plugin Empty model

Empty model

by Michael A. Guravage last modified Feb 17, 2016 10:53 AM


Empty model plugin

Detail Description:

We begin with an 'empty' model plugin; which we will modify in subsequent protocols.

The protocols are included with the VirtualLeaf framework. Each protocol occupies a unique revision in the mercurial source code repository, and is marked with a  mnemonic tag. Use mercurial's update command to move to the appropriate revision:

> cd virtualleaf
> hg update -r 'empty model'


Looking in 'virtualleaf/src/protocols/MyEmptyModel/myemptymodel.cpp', note that all the class member functions are empty - except one. The 'ModelID' function returns a string describing this model. This string will appear in the VirtualLeaf's 'Models' pull-down menu.

QString Myemptymodel::ModelID(void) 
  // specify the name of your model here
  return QString( "First Vleaf model" );

The protocols are not included in the framework build process. To build and install our 'empty model' type:

> cd src/protocols
> make

Language: source code

Source: : empty model

There are currently no items in this folder.

Document Actions
« February 2020 »