//------------------------------------------------------------------------
bool XmlRepresentationHelper::startEndCellOneLayerWithParamName (Vst::ParameterInfo& info, FIDString _function /*= 0*/)
{
	if (!startCell ())
		return false;
	startLayer (info, _function, false);
	startEndTitleDisplay (info);
	endLayer ();
	endCell ();

	return true;
}
static void printBoxes(FILE *f)
{
    for (int i = 0; i<10; i++) {
        startLayer(f);
        for (double x=-45; x<45; x+=20) {
            for (double y=-45; y<45; y+=20) {
                rectf(f, x, y, 10.0, 10.0);
            }
        }
        endLayer(f);
    }
}
Exemple #3
0
 /**
  * \brief Returns the result and finishes the construction process
  * \pre Called after beginDocument()
  * \post only beginDocument() can be safely called
  */
 Document* endDocument()
 {
     if ( !document )
         return nullptr;
     // Finish pending operations
     endAnimation();
     endLayer();
     // Clear current document
     auto doc = document;
     document = nullptr;
     element = nullptr;
     // Assign the frames to their images
     linkImageFrames();
     // Remove undo actions
     doc->undoStack().clear();
     // Return the finished document
     return doc;
 }
Exemple #4
0
void GLXGraphicsystem::renderSWLayer(Layer *layer, bool clear)
{
    if (clear)
    {
        clearBackground();
    }

    if ( layer->visibility && layer->opacity > 0.0 )
    {
        SurfaceList surfaces = layer->getAllSurfaces();
        beginLayer(layer);
        for(SurfaceListConstIterator currentS = surfaces.begin(); currentS != surfaces.end(); currentS++)
        {
            if ((*currentS)->hasNativeContent() && (*currentS)->visibility && (*currentS)->opacity>0.0f)
            {
                renderSurface(*currentS);
            }
        }
        endLayer();
    }
}
//------------------------------------------------------------------------
XmlRepresentationHelper::~XmlRepresentationHelper ()
{
	if (state == kInLayer)
		endLayer ();
	if (state == kInCell)
		endCell ();
	if (state == kInPage)
		endPage ();

	StringWriter writer (stream);
	String string;
	
	// end representation
	string.printf ("\t%s", END_TAG_STRING(REPRESENTATION_TAG));
	writer.write (string);
	writer.write (ENDLINE_A);

	// end piper
	writer.write (END_TAG_STRING(ROOTXML_TAG));
	writer.write (ENDLINE_A);
}
void ofxLayerMask::end() {
    endLayer();
}