[38ba34]: / Tools / ModelUtilities / DrawSettings / DrawSettingsDefault.any

Download this file

190 lines (155 with data), 5.8 kB

AnyFolder DrawSettings  = {
  
  //^ The values in this DrawSettings file are initialized with "??=" which allows
  //^ the values to be overrriden in the user application. 
  //^ Hence, all values in this files behaves as default values if not set by 
  //^ the user. 
  //^ 
  //^ It is good practice not to edit this file, but instead set the values directly 
  //^ in your applicaiton:
  //^
  //^ .. code_block:: AnyScript
  //^
  //^    Main.DrawSettings.Muscle ??= 
  //^    {
  //^      RGB ??= {0.9, 0.1, 0.1};
  //^    };
  //^

  
/// This is the color definitions of the nodes and segments
AnyFolder  Colors = {
  AnyVec3 AnyBodyRed ??= {149/256,51/256,55/256};    //AnyBody standard red
  AnyVec3 AnyBodyGreen ??= {47/256,131/256,80/256};  //AnyBody standard green
  AnyVec3 AnyBodyBlue ??= {82/256,85/256,111/256};   //AnyBody standard blue
  AnyVec3 AnyBodyYellow ??= {235/256,197/256,17/256}; //AnyBody standard yellow
  AnyVec3 AnyBodyPaleYellow ??= {248/256,204/256,115/256}; //AnyBody standard pale yellow
  AnyVec3 AnyBodyGrey ??= {153/256,153/256,153/256};    //AnyBody standard grey
  
  AnyVec3 Nodes ??= AnyBodyPaleYellow; 
  AnyVec3 Segments ??=  AnyBodyPaleYellow; 
};

  AnyFolder Muscle = { 
    AnyVec3 RGB ??= .Colors.AnyBodyRed;
    AnySwitchVar Visible ??= On;
    AnySwitch DrawScaleOnOff ??= Off;
    AnyVar Bulging ??= 5;
    AnyVar ColorScale ??= 1.0;
    AnyVec3 RGBColorScale ??= {0.957031, 0.785156,0.785156};
    AnyVar MaxStress ??= 1500000.000000; //N/m^2 //This number is for graphics only!
    AnyVar Opacity ??= 1.0;
    
    AnyFolder DrawScale = 
      {
        AnySwitchVar EnableCreasing ??= Off;
        AnyVar CreasingAngle ??= 0.524;
        AnySwitchVar EnableWireframe ??= Off;
        AnySwitchVar EnableSmoothing ??= On;
        AnyVar Param ??= 0.0;
        AnyVector ParamArray ??= {0.0, 0.167, 0.333, 0.5, 0.667, 0.833, 1.0};
        AnyFloat RGBArray ??= {{0.0, 0.0, 0.6}, {0.0, 0.0, 1.0}, {0.0, 1.0, 1.0}, {0.0, 1.0, 0.0}, {1.0, 1.0, 0.0}, {1.0, 0.0, 0.0}, {0.6, 0.0, 0.0}};
        AnyVector OpacityArray ??= {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0};
      };
  }; 
  
  
    AnyFolder BonesOpacity = {
    
    AnyVar GlobalCoef ??= 1;
    
    AnyVar Skull ??= 1*GlobalCoef;
    AnyVar Thorax ??= 1*GlobalCoef;
    AnyVar Pelvis ??= 1*GlobalCoef;
    AnyVar Sacrum ??= 1*GlobalCoef;
    AnyVar L5 ??= 1*GlobalCoef;
    AnyVar L4 ??= 1*GlobalCoef;
    AnyVar L3 ??= 1*GlobalCoef;
    AnyVar L2 ??= 1*GlobalCoef;
    AnyVar L1 ??= 1*GlobalCoef;
    
    AnyVar RightFoot ??= 1*GlobalCoef;
    AnyVar RightShank ??= 1*GlobalCoef;
    AnyVar RightThigh ??= 1*GlobalCoef;
    
    AnyVar LeftFoot ??= 1*GlobalCoef;
    AnyVar LeftShank ??= 1*GlobalCoef;
    AnyVar LeftThigh ??= 1*GlobalCoef;

    
    AnyVar RightClavicula ??= 1*GlobalCoef;
    AnyVar RightScapula ??= 1*GlobalCoef;
    AnyVar RightHumerus ??= 1*GlobalCoef;
    AnyVar RightUlna ??= 1*GlobalCoef;
    AnyVar RightRadius ??= 1*GlobalCoef;
    AnyVar RightHand ??= 1*GlobalCoef;
    
    AnyVar LeftClavicula ??= 1*GlobalCoef;
    AnyVar LeftScapula ??= 1*GlobalCoef;
    AnyVar LeftHumerus ??= 1*GlobalCoef;
    AnyVar LeftUlna ??= 1*GlobalCoef;
    AnyVar LeftRadius ??= 1*GlobalCoef;
    AnyVar LeftHand ??= 1*GlobalCoef;

    
    // For leg TD only.
    AnyVar RightTalus ??= 1*GlobalCoef;
    AnyVar RightPatella ??= 1*GlobalCoef;
    
    AnyVar LeftTalus ??= 1*GlobalCoef;
    AnyVar LeftPatella ??= 1*GlobalCoef;

    
    // For detailed cervical model only.
    AnyVar C1 ??= 1*GlobalCoef;
    AnyVar C2 ??= 1*GlobalCoef;
    AnyVar C3 ??= 1*GlobalCoef;
    AnyVar C4 ??= 1*GlobalCoef;
    AnyVar C5 ??= 1*GlobalCoef;
    AnyVar C6 ??= 1*GlobalCoef;
    AnyVar C7 ??= 1*GlobalCoef;
  };

  
  
  AnyFolder SegmentAxes = {
    AnyVec3 RGB ??= {0,0,1};
    AnyVec3 ScaleXYZ ??= {0.0001,0.00001,0.00001};
  };
  AnyFolder BML = {
    AnyVec3 ScaleXYZ ??= {0.0006,0.0006,0.0006};
    AnyVec3 RGB ??= .Colors.AnyBodyBlue;
  };
  AnyFolder JointAxesProximal = {
    AnyVec3 RGB ??= .Colors.AnyBodyRed;
    AnyVec3 ScaleXYZ ??= {0.015,0.015,0.015};
  };
  AnyFolder JointAxesDistal = {
    AnyVec3 RGB ??= .Colors.AnyBodyGreen;
    AnyVec3 ScaleXYZ ??= {0.01,0.01,0.01};
  };
  
  
  AnyFolder SegmentNodes = {
    AnyVec3 ScaleXYZ ??= {0.0005,0.0005,0.0005};
    AnyVec3 RGB ??= .Colors.AnyBodyRed;
  };
  AnyFolder WrapGeometry = {
    AnyVec3 RGB ??= {1,1,1};
  };
  
   AnyFolder   DrawSettingsSupport = {
    AnyFolder Lin = { 
      AnyVar   ScaleFactor ??= 0.004; 
      AnyVec3  RGB ??= {0,0,1};
      AnyVar Thickness ??= 0.004;
      AnyVar HeadThickness ??= 2*Thickness;
      AnyVar HeadLength ??= 3*Thickness;
    };
    AnyFolder Rot = { 
      AnyVar  ScaleFactor ??= 0.08; 
      AnyVec3 RGB ??= {1,0,0};
      AnyVar  Thickness ??= 0.075;
      AnyVar  HeadThickness ??= 2*Thickness;
      AnyVar  HeadLength ??= 5*Thickness;
    };
  };
  AnyFolder   DrawSettingsJointReactions={
    AnyFolder Lin={ 
      AnyVar   ScaleFactor??=0.0005; 
      AnyVec3  RGB ??= {0,0,1};
      AnyVar Thickness ??= 0.01;
      AnyVar HeadThickness ??= 2*Thickness;
      AnyVar HeadLength ??= 3*Thickness;
    };
    AnyFolder Rot={ 
      AnyVar  ScaleFactor ??= 0.001; 
      AnyVec3 RGB ??= {1,0,0};
      AnyVar  Thickness ??= 0.01;
      AnyVar  HeadThickness ??= 2*Thickness;
      AnyVar  HeadLength ??= 5*Thickness;
    };
  };
  
  AnyFolder Names={
   AnyVec3 RGB ??= {0,0,1};
   AnyVec3 ScaleXYZ ??= {0.01,0.01,0.01};
  };

  
  AnyFolder Marker = {
   AnyVec3   Color ??= {0,0,1};
   AnyVar   Radius ??= 0.00;
  
  };

}; //DrawSettings