Back to index

salome-smesh  6.5.0
Public Member Functions
SMESH::GroupColor Interface Reference

Functor "Group Color" Returns color of group to which mesh element belongs to. More...

import "SMESH_Filter.idl";

Inheritance diagram for SMESH::GroupColor:
Inheritance graph
[legend]
Collaboration diagram for SMESH::GroupColor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetElementType (in ElementType theType)
void SetColorStr (in string theColor)
string GetColorStr ()
boolean IsSatisfy (in long thEntityId)
void SetMesh (in SMESH_Mesh theMesh)
FunctorType GetFunctorType ()
ElementType GetElementType ()

Detailed Description

Functor "Group Color" Returns color of group to which mesh element belongs to.

Definition at line 408 of file SMESH_Filter.idl.


Member Function Documentation

Definition at line 2570 of file SMESH_Controls.cxx.

{
  theResStr.Clear();
  theResStr += TCollection_AsciiString( myColor.Red() );
  theResStr += TCollection_AsciiString( ";" ) + TCollection_AsciiString( myColor.Green() );
  theResStr += TCollection_AsciiString( ";" ) + TCollection_AsciiString( myColor.Blue() );
}

Here is the caller graph for this function:

boolean SMESH::Predicate::IsSatisfy ( in long  thEntityId) [inherited]
void GroupColor::SetColorStr ( in string  theColor)

Definition at line 2548 of file SMESH_Controls.cxx.

{
  TCollection_AsciiString aStr = theStr;
  aStr.RemoveAll( ' ' );
  aStr.RemoveAll( '\t' );
  for ( int aPos = aStr.Search( ";;" ); aPos != -1; aPos = aStr.Search( ";;" ) )
    aStr.Remove( aPos, 2 );
  Standard_Real clr[3];
  clr[0] = clr[1] = clr[2] = 0.;
  for ( int i = 0; i < 3; i++ ) {
    TCollection_AsciiString tmpStr = aStr.Token( ";", i+1 );
    if ( !tmpStr.IsEmpty() && tmpStr.IsRealValue() )
      clr[i] = tmpStr.RealValue();
  }
  myColor = Quantity_Color( clr[0], clr[1], clr[2], Quantity_TOC_RGB );
}
void SMESH::Functor::SetMesh ( in SMESH_Mesh  theMesh) [inherited]

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