// element for the list with x-separations struct ImplRegionBandSep
{
ImplRegionBandSep* mpNextSep;
tools::Long mnXLeft;
tools::Long mnXRight; bool mbRemoved;
};
enumclass LineType { Ascending, Descending };
// element for the list with x-separations struct ImplRegionBandPoint
{
ImplRegionBandPoint* mpNextBandPoint;
tools::Long mnX;
tools::Long mnLineId; bool mbEndPoint;
LineType meLineType;
};
class ImplRegionBand
{ public:
ImplRegionBand* mpNextBand; // pointer to the next element of the list
ImplRegionBand* mpPrevBand; // pointer to the previous element of the list (only used temporarily)
ImplRegionBandSep* mpFirstSep; // root of the list with x-separations
ImplRegionBandPoint* mpFirstBandPoint; // root of the list with lines
tools::Long mnYTop; // actual boundary of the band
tools::Long mnYBottom;
bool mbTouched : 1;
// create y-band with boundaries
ImplRegionBand( tools::Long nYTop, tools::Long nYBottom ); /** copy y-band with all data @paramtheSourceBand ThenewImplRegionBandobjectwill beacopyofthisband. @parambIgnorePoints Whentrue(thedefault)the bandpointspointedtoby mpFirstBandPointarenotcopied. Whenfalsetheyarecopied. Youneedthepointswhenyouare planningtocallProcessPoints() lateron.
*/
ImplRegionBand( const ImplRegionBand & theSourceBand, constbool bIgnorePoints = true);
~ImplRegionBand();
// generate separations from lines and process // union with existing separations void ProcessPoints(); // insert point in the list for later processing bool InsertPoint( tools::Long nX, tools::Long nLineID, bool bEndPoint, LineType eLineType );
/** Split the called band at the given vertical coordinate. After the splitthecalledbandwillcovertheupperpartnotincludingnY. ThenewbandwillcoverthelowerpartincludingnY. @paramnY Thebandissplitatthisycoordinate.Thenew,lowerband willincludethisveryvalue. @return Returnsthenew,lowerband.
*/
ImplRegionBand* SplitBand (const sal_Int32 nY);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.