Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeTextColor_i Class Reference

#include <SALOMEDS_AttributeTextColor_i.hxx>

List of all members.

Public Member Functions

 SALOMEDS_AttributeTextColor_i (SALOMEDSImpl_AttributeTextColor *theAttr, CORBA::ORB_ptr orb)
 ~SALOMEDS_AttributeTextColor_i ()
SALOMEDS::Color TextColor ()
void SetTextColor (const SALOMEDS::Color &value)

Detailed Description

Definition at line 38 of file SALOMEDS_AttributeTextColor_i.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTextColor_i::SALOMEDS_AttributeTextColor_i ( SALOMEDSImpl_AttributeTextColor *  theAttr,
CORBA::ORB_ptr  orb 
) [inline]

Definition at line 43 of file SALOMEDS_AttributeTextColor_i.hxx.

    :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 

Definition at line 46 of file SALOMEDS_AttributeTextColor_i.hxx.

{};

Member Function Documentation

Definition at line 49 of file SALOMEDS_AttributeTextColor_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  std::vector<double> anArray;
  anArray.push_back(value.R);
  anArray.push_back(value.G);
  anArray.push_back(value.B);
  dynamic_cast<SALOMEDSImpl_AttributeTextColor*>(_impl)->ChangeArray(anArray);
}

Here is the call graph for this function:

Definition at line 31 of file SALOMEDS_AttributeTextColor_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDS::Color TextColor;
  std::vector<double> anArray = dynamic_cast<SALOMEDSImpl_AttributeTextColor*>(_impl)->TextColor();
  if (anArray.size()!=3) { 
    TextColor.R = 0;
    TextColor.G = 0;
    TextColor.B = 0;
  }
  else {
    TextColor.R = anArray[0];
    TextColor.G = anArray[1];
    TextColor.B = anArray[2];
  }
  return TextColor;
}

Here is the call graph for this function:


The documentation for this class was generated from the following files: