Beispiel #1
0
void
WellBoreAttributes::SetWellLineWidth(int wellLineWidth_)
{
    wellLineWidth = wellLineWidth_;
    Select(ID_wellLineWidth, (void *)&wellLineWidth);
}
void
HistogramAttributes::SetDomain(int domain_)
{
    domain = domain_;
    Select(ID_domain, (void *)&domain);
}
void
HistogramAttributes::SetUseBinWidths(bool useBinWidths_)
{
    useBinWidths = useBinWidths_;
    Select(ID_useBinWidths, (void *)&useBinWidths);
}
Beispiel #4
0
/* initialize()
 * ====================================================================
 */
int
initialize( void )
{
      int berror;
      int flag;
      
      flag = TRUE;
            
      /* Get the Boot Drive and Muck the paths */
      Drive = GetBaseDrive();
      OnPath[0] = OffPath[0] = Drive;
      NPOnPath[0] = NPOffPath[0] = Drive;
          

      olddma = Fgetdta();	
      Fsetdta( &newdma );		/* Point to OUR buffer */

     berror = Fsfirst( OnPath, 0 );
     if( berror == E_OK )		/* Found it! */
     {
	/* MINT IS ON! with Memory Protection */
	Select( SETON );
	Deselect( SETOFF );
	Select( NPON );
	Deselect( NPOFF );
	bstate = TRUE;
	cstate = TRUE;
     }
     else
     {
        /* Check for No Memory Protection */
        berror = Fsfirst( NPOnPath, 0 );
        if( berror == E_OK )
        {
           /* Found it! It is ON with No Memory Protection */
	   Select( NPOFF );
	   Deselect( NPON );
	   Select( SETON );
	   Deselect( SETOFF );
	   bstate = TRUE;
           cstate = FALSE;
        }
        else
        {
     	   /* Check for Off items */
     
           /* Mint is OFF, with memory protection */
           berror = Fsfirst( OffPath, 0 );
           if( berror == E_OK )		/* Found it! */
           {
             /* MInT.PRX is found! */
             Select( SETOFF );
             Deselect( SETON );
             Select( NPON );
             Deselect( NPOFF );
             bstate = FALSE;
             cstate = TRUE;
           }
           else
           {
              /* Mint is off with no memory protection */
              berror = Fsfirst( NPOffPath, 0 );
              if( berror == E_OK )
              {
                /* MintNP.prx is found */
                Select( SETOFF );
                Deselect( SETON );
                Select( NPOFF );
                Deselect( NPON );
                bstate = FALSE;
                cstate = FALSE;
              }
              else
              {
       	        /* Mint is not on the hard disk...*/
	        form_alert( 1, nomint );
	        flag = FALSE;
	      }  
           }
       }   
     }
     Fsetdta( olddma );		/* Point to OLD buffer */
     return( flag );
}
void
HistogramAttributes::SetMax(double max_)
{
    max = max_;
    Select(ID_max, (void *)&max);
}
Beispiel #6
0
void
TensorAttributes::SelectTensorColor()
{
    Select(ID_tensorColor, (void *)&tensorColor);
}
Beispiel #7
0
void wxVListBox::DoHandleItemClick(int item, int flags)
{
    // has anything worth telling the client code about happened?
    bool notify = false;

    if ( HasMultipleSelection() )
    {
        // select the iteem clicked?
        bool select = true;

        // NB: the keyboard interface we implement here corresponds to
        //     wxLB_EXTENDED rather than wxLB_MULTIPLE but this one makes more
        //     sense IMHO
        if ( flags & ItemClick_Shift )
        {
            if ( m_current != wxNOT_FOUND )
            {
                if ( m_anchor == wxNOT_FOUND )
                    m_anchor = m_current;

                select = false;

                // only the range from the selection anchor to new m_current
                // must be selected
                if ( DeselectAll() )
                    notify = true;

                if ( SelectRange(m_anchor, item) )
                    notify = true;
            }
            //else: treat it as ordinary click/keypress
        }
        else // Shift not pressed
        {
            m_anchor = item;

            if ( flags & ItemClick_Ctrl )
            {
                select = false;

                if ( !(flags & ItemClick_Kbd) )
                {
                    Toggle(item);

                    // the status of the item has definitely changed
                    notify = true;
                }
                //else: Ctrl-arrow pressed, don't change selection
            }
            //else: behave as in single selection case
        }

        if ( select )
        {
            // make the clicked item the only selection
            if ( DeselectAll() )
                notify = true;

            if ( Select(item) )
                notify = true;
        }
    }

    // in any case the item should become the current one
    if ( DoSetCurrent(item) )
    {
        if ( !HasMultipleSelection() )
        {
            // this has also changed the selection for single selection case
            notify = true;
        }
    }

    if ( notify )
    {
        // notify the user about the selection change
        SendSelectedEvent();
    }
    //else: nothing changed at all
}
Beispiel #8
0
void
TensorAttributes::SetUseStride(bool useStride_)
{
    useStride = useStride_;
    Select(ID_useStride, (void *)&useStride);
}
Beispiel #9
0
void
TensorAttributes::SetStride(int stride_)
{
    stride = stride_;
    Select(ID_stride, (void *)&stride);
}
Beispiel #10
0
void
WellBoreAttributes::SetWellNameScale(float wellNameScale_)
{
    wellNameScale = wellNameScale_;
    Select(ID_wellNameScale, (void *)&wellNameScale);
}
Beispiel #11
0
void
TensorAttributes::SelectAll()
{
    Select(ID_useStride,          (void *)&useStride);
    Select(ID_stride,             (void *)&stride);
    Select(ID_nTensors,           (void *)&nTensors);
    Select(ID_scale,              (void *)&scale);
    Select(ID_scaleByMagnitude,   (void *)&scaleByMagnitude);
    Select(ID_autoScale,          (void *)&autoScale);
    Select(ID_colorByEigenvalues, (void *)&colorByEigenvalues);
    Select(ID_useLegend,          (void *)&useLegend);
    Select(ID_tensorColor,        (void *)&tensorColor);
    Select(ID_colorTableName,     (void *)&colorTableName);
    Select(ID_invertColorTable,   (void *)&invertColorTable);
}
Beispiel #12
0
void
WellBoreAttributes::SetWellStemHeight(float wellStemHeight_)
{
    wellStemHeight = wellStemHeight_;
    Select(ID_wellStemHeight, (void *)&wellStemHeight);
}
Beispiel #13
0
void
WellBoreAttributes::SetWellAnnotation(WellBoreAttributes::WellAnnotation wellAnnotation_)
{
    wellAnnotation = wellAnnotation_;
    Select(ID_wellAnnotation, (void *)&wellAnnotation);
}
Beispiel #14
0
void
WellBoreAttributes::SetWellLineStyle(int wellLineStyle_)
{
    wellLineStyle = wellLineStyle_;
    Select(ID_wellLineStyle, (void *)&wellLineStyle);
}
Beispiel #15
0
void
TensorAttributes::SetColorTableName(const std::string &colorTableName_)
{
    colorTableName = colorTableName_;
    Select(ID_colorTableName, (void *)&colorTableName);
}
Beispiel #16
0
void
TensorAttributes::SetNTensors(int nTensors_)
{
    nTensors = nTensors_;
    Select(ID_nTensors, (void *)&nTensors);
}
Beispiel #17
0
void
TensorAttributes::SetInvertColorTable(bool invertColorTable_)
{
    invertColorTable = invertColorTable_;
    Select(ID_invertColorTable, (void *)&invertColorTable);
}
Beispiel #18
0
void
TensorAttributes::SetScale(double scale_)
{
    scale = scale_;
    Select(ID_scale, (void *)&scale);
}
Beispiel #19
0
void
TensorAttributes::SelectColorTableName()
{
    Select(ID_colorTableName, (void *)&colorTableName);
}
Beispiel #20
0
void
TensorAttributes::SetScaleByMagnitude(bool scaleByMagnitude_)
{
    scaleByMagnitude = scaleByMagnitude_;
    Select(ID_scaleByMagnitude, (void *)&scaleByMagnitude);
}
Beispiel #21
0
void CPlayer::Update(float dt)
{
	CCommander::Update(dt);
	Select(dt);
	Move(dt);
}
Beispiel #22
0
void
TensorAttributes::SetAutoScale(bool autoScale_)
{
    autoScale = autoScale_;
    Select(ID_autoScale, (void *)&autoScale);
}
void
HistogramAttributes::SetMin(double min_)
{
    min = min_;
    Select(ID_min, (void *)&min);
}
Beispiel #24
0
void
TensorAttributes::SetColorByEigenvalues(bool colorByEigenvalues_)
{
    colorByEigenvalues = colorByEigenvalues_;
    Select(ID_colorByEigenvalues, (void *)&colorByEigenvalues);
}
void
HistogramAttributes::SetNumBins(int numBins_)
{
    numBins = numBins_;
    Select(ID_numBins, (void *)&numBins);
}
Beispiel #26
0
void
TensorAttributes::SetUseLegend(bool useLegend_)
{
    useLegend = useLegend_;
    Select(ID_useLegend, (void *)&useLegend);
}
void
HistogramAttributes::SetZone(int zone_)
{
    zone = zone_;
    Select(ID_zone, (void *)&zone);
}
Beispiel #28
0
void
TensorAttributes::SetTensorColor(const ColorAttribute &tensorColor_)
{
    tensorColor = tensorColor_;
    Select(ID_tensorColor, (void *)&tensorColor);
}
void
HistogramAttributes::SetOutputType(HistogramAttributes::OutputType outputType_)
{
    outputType = outputType_;
    Select(ID_outputType, (void *)&outputType);
}
Beispiel #30
0
void
WellBoreAttributes::SetWellRadius(float wellRadius_)
{
    wellRadius = wellRadius_;
    Select(ID_wellRadius, (void *)&wellRadius);
}