Difference in Cv* versus Cy* Classes?

doktorstick

Warlord
Joined
Aug 20, 2008
Messages
142
What's the difference (i.e., how does the system use) the Cv* versus Cy* files? Cy* appears to be accessor methods, mainly. What's the mnemonic for Cv and Cy?

Thanks.
 
If you mean in terms of the SDK, CvBlah is the Blah class implentation in C++, and CyBlah/CyBlahInterface are the Python counterparts. The use of the second letter y points you towards Python.

The CyBlahInterface defines the Python function and (usually) points it to the middleman, CyBlah. This middleman is a wrapper class that bridges the gap between the Python interface and the SDK and the wrapper class then calls the actual SDK function defined in CvBlah.

For a doncrete example, take a look at Gerike's post in the Exposing new functions to Python tutorial.
 
Top Bottom