Пример #1
0
//--------------------------------------------------------------
ofxDraggableGui::ofxDraggableGui(string name) : ofxSimpleGuiPage(name)
{
	bDraggable = false;
	
	disableAllEvents();
	enableKeyEvents();
	enableMouseEvents();
}
Пример #2
0
void VoxelBufferFilter::setup()
{
	GrayscaleFilter::setup();

	numCaptureFrames = 90;
	frameOffsetBytes = 0;
	capturedFrames = 0;

	volumeSize[0] = videoSize.x;
	volumeSize[1] = videoSize.y;
	volumeSize[2] = numCaptureFrames;

	addToggle("Capture", settings.do_capture);
	addSlider("Num. Capture Frames", numCaptureFrames, 1, 512);

	captureProgressSlider = &addSlider("Capture Progress", capturedFrames, 0, numCaptureFrames);

	h_volume = (unsigned char*)malloc(videoSize.x*videoSize.y*numCaptureFrames);

	enableKeyEvents();
}
//--------------------------------------------------------------
void ofxMSAInteractiveObject::enableAllEvents() {
	enableMouseEvents();
	enableKeyEvents();
	enableAppEvents();
}
Пример #4
0
void WeavingPoint::setup() {
    //printf("MyTestObject::setup() - hello!\n");
    enableMouseEvents();
    enableKeyEvents();
}