Changeset 3397 for trunk


Ignore:
Timestamp:
Feb 28, 2013 2:20:46 PM (11 years ago)
Author:
ldelgass
Message:

Add flow switch for two-sided volume lighting

Location:
trunk/packages/vizservers/nanovis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/FlowCmd.cpp

    r3362 r3397  
    7575    {Rappture::SWITCH_BOOLEAN, "-hide", "boolean",
    7676     offsetof(FlowValues, isHidden), 0},
     77    {Rappture::SWITCH_BOOLEAN, "-light2side", "boolean",
     78     offsetof(FlowValues, twoSidedLighting), 0},
    7779    {Rappture::SWITCH_FLOAT, "-opacity", "value",
    7880     offsetof(FlowValues, opacity), 0},
     
    677679    volPtr->transferFunction(_sv.tfPtr);
    678680    volPtr->dataEnabled(_sv.showVolume);
     681    volPtr->twoSidedLighting(_sv.twoSidedLighting);
    679682    volPtr->outline(_sv.showOutline);
    680683    volPtr->opacityScale(_sv.opacity);
  • trunk/packages/vizservers/nanovis/FlowCmd.h

    r3362 r3397  
    207207    int showOutline;
    208208    int isHidden;
     209    int twoSidedLighting;
    209210    float ambient;     ///< Ambient volume shading
    210211    float diffuse;     ///< Diffuse volume shading
Note: See TracChangeset for help on using the changeset viewer.