Exemple #1
0
ChEXPORT bool EshStroke::isAnythingOverridden () const
{
    ChLOG_DEBUG_START_FN;
    return
        isColorSet() ||
        isOpacitySet() ||
        isColor2Set() ||
        isColorModifSet() ||
        isFillTypeSet() ||
        isBlipSet() ||
        isBlipNameSet() ||
        isBlipFlagsSet() ||
        isImageWidthSet() ||
        isImageHeightSet() ||
        isUnitSet() ||
        isWeightSet() ||
        isMiterLimitSet() ||
        isLineStyleSet() ||
        isPredefDashStyleSet() ||
        isDashStyleSet() ||
        isStartArrowSet() ||
        isEndArrowSet() ||
        isStartArrowWidthSet() ||
        isStartArrowLengthSet() ||
        isEndArrowWidthSet() ||
        isEndArrowLengthSet() ||
        isJoinStyleSet() ||
        isCapStyleSet() ||
        isRecolorSet() ||
        isRotateSet() ||
        isOnSet() ||
        isImageAlignShapeSet() ||
        isIDSet();
}
Exemple #2
0
 bool ColorOcTreeNode::pruneNode() {
   // checks for equal occupancy only, color ignored
   if (!this->collapsible()) return false;
   // set occupancy value 
   setLogOdds(getChild(0)->getLogOdds());
   // set color to average color
   if (isColorSet()) color = getAverageChildColor();
   // delete children
   for (unsigned int i=0;i<8;i++) {
     delete children[i];
   }
   delete[] children;
   children = NULL;
   return true;
 }