ofxSimpleGuiPage::ofxSimpleGuiPage(string name) : ofxSimpleGuiControl(name) {
	disableAllEvents();
	width = 0;
	height = ofGetHeight();
   eventStealingControl = NULL;
	setXMLName(name + "_settings.xml");
}
ofxMSAInteractiveObject::~ofxMSAInteractiveObject() {
    try {
        disableAllEvents();
    } catch (Poco::SystemException) {
        return; // we're leaving anyways so no need to delete
    }
}
Example #3
0
//--------------------------------------------------------------
ofxDraggableGui::ofxDraggableGui(string name) : ofxSimpleGuiPage(name)
{
	bDraggable = false;
	
	disableAllEvents();
	enableKeyEvents();
	enableMouseEvents();
}
Example #4
0
//----------------------------------------------------
ofxCvCoordWarpingGui::ofxCvCoordWarpingGui(){
	selected = -1;
	quadName = "QUAD_";
	scale.x = scale.y = 1.0f;
	bAutoSave = false;
    disableAllEvents();
    verbose = false;
    bEventsEnabled = false;
}
Example #5
0
//--------------------------------------------------------------
void quadWarpingHandle::setup(quadWarping* pParent, ofTrueTypeFont* pFont)
{
	mp_parent = pParent;
	mp_font = pFont;

	setSize(10, 10);
	disableAllEvents();
	enableMouseEvents();
}
//--------------------------------------------------------------
//--------------------------------------------------------------
ofxMtlMapping2DPolygon::ofxMtlMapping2DPolygon()
{    
    disableAllEvents();
	enableMouseEvents();
    
    // ----
    polyline = new ofPolyline();
    shapeId = -1;
}
Example #7
0
ControlBase::ControlBase(string _name){
	totalControlsCreated++;
	controlId = totalControlsCreated;
	disableAllEvents();
	vertices.resize(10);
	bPressed = false;
	controlState = CONTROL_STATE_IDLE;
	textOffSet.set(10, 15);
	name = _name;
	enable();
}
//--------------------------------------------------------------
ofxMtlMapping2DVertex::ofxMtlMapping2DVertex()
{
    disableAllEvents();
    enableMouseEvents();
    enabled = false;
    bIsOnAnEdge = true;
    edgeIndex = -1;

    //Vertex
    setSize(30, 30);
    toBeRemoved = false;
    isDefiningTectureCoord = false;
    updateCenter();
}
Example #9
0
//----------------------------------------------------
ofxCvCoordWarpingGui::ofxCvCoordWarpingGui() {
    selected = -1;
    quadName = "QUAD_";
    scale.x = scale.y = 1.0f;
    bAutoSave = false;
    disableAllEvents();
    verbose = false;
    bEventsEnabled = false;

    for ( int i=0; i<4; i++ ) {
        srcScaled[i].set(0,0);
        srcZeroToOne[i].set(0,0);
        returnScaled[i].set(0,0);
    }
}
Example #10
0
ofxSimpleGuiControl::ofxSimpleGuiControl(string name) {
	controlType = "";
	this->config = &defaultSimpleGuiConfig;
	setName(name);
	setKey(key);
	setPos(0, 0);
	lock	  = false;
	focused	  = false;
	newColumn = false;
	setKeyboardShortcut(0);

	setup();
	
	disableAllEvents();		// just for safety to make sure nothing is registered twice
//	enableAppEvents();
//	enableMouseEvents();
//	disableKeyEvents();
}
Example #11
0
//--------------------------------------------------------------
SoundEngine::SoundEngine(string name)
  : ofxMarsyasNetwork(name)
{
  priority	= 2;

  disableAllEvents();
  ofAddListener(ofEvents.setup, (ofxMSAInteractiveObject*)this, &ofxMSAInteractiveObject::_setup);
  ofAddListener(ofEvents.draw, (ofxMSAInteractiveObject*)this, &ofxMSAInteractiveObject::_draw);

  ofSetFrameRate(10); // if vertical sync is off, we can go a bit fast... this caps the framerate at 60fps.

  max_data.create(POWERSPECTRUM_BUFFER_SIZE);

  for (int i = 0; i < POWERSPECTRUM_BUFFER_SIZE; i++) {
    max_data(i) = -999.9;
  }
  counter = 0;
}
//--------------------------------------------------------------
ofxMSAInteractiveObject::~ofxMSAInteractiveObject() {
	disableAllEvents();
}
Example #13
0
void LitmusDevice::stopTracing() {
  int ok;
  ok = disableAllEvents();
  if (!ok)
    fprintf(stderr, "disable_all: %m\n");
}
ofxSimpleGuiPage::ofxSimpleGuiPage(string name) : ofxSimpleGuiControl(name) {
	disableAllEvents();
	width = 0;
	height = ofGetHeight();
	setXMLName(folderPath+name+"_settings.xml"); // modified to prepend gui.settingsFolder
}
//--------------------------------------------------------------
void ofxMtlMapping2DPolygon::enable()
{
    disableAllEvents();
	enableMouseEvents();
}
//--------------------------------------------------------------
void ofxMtlMapping2DPolygon::disable()
{
    disableAllEvents();
}