Ejemplo n.º 1
0
void FolderWindow::SetStructures(int folderIndex)
{

    StructureManager* structureManager = RNAStructViz::GetInstance()->GetStructureManager();
    Folder* folder = structureManager->GetFolderAt(folderIndex);
    m_folderIndex = folderIndex;
    int shift = 0;
    for( int ui = 0; ui < folder->structCount; ui++)
    {
        if(folder->folderStructs[(ui+shift)] == -1)
        {
            shift++;
        }
        int i = folder->folderStructs[(ui+shift)];
        RNAStructure *strct = structureManager->GetStructure(i);
	AddStructure(strct->GetFilename(), i);
    }
    label(folder->folderName);
    char structLabel[MAX_BUFFER_SIZE];
    snprintf(structLabel, MAX_BUFFER_SIZE - 1, " \n\n\n\n\n%s", folder->folderName);
    ConfigParser::nullTerminateString(structLabel);
    copy_label(structLabel);
    labelsize(1.25 * LOCAL_TEXT_SIZE);
    align(FL_ALIGN_TOP);
}
Ejemplo n.º 2
0
/*F AddNextSubstructure(fullspec,priorityelements,currentstructure)
**
**  DESCRIPTION
**    fullspec: the full structural specification
**    priorityelements: The indicies of structures to add (repeated)
**    currentstructure: The current structure to add to
**
**  REMARKS
**
**   This picks one of the structural elements and adds it to the current structure
**
**
**  REFERENCES
**
**  SEE ALSO
**
**  HEADERFILE
**
*/
static void AddNextSubstructure(FullMoleculeSpecification *fullspec,
				DataSubSet *priorityelements,
				CurrentStructure *currentstructure) {
INT next;
  FullStructuralElement *element;

  if(priorityelements->NumberOfPoints == 0) {
    currentstructure->Completed = 1;
  } else {
    next = PickNextStructureToAdd(priorityelements);
    element = fullspec->FullStructuralElements + next;
    AddStructure(currentstructure,element);
  }
}
Ejemplo n.º 3
0
void FolderWindow::SetStructures(int folderIndex)
{
    StructureManager* structureManager = RNAStructViz::GetInstance()->GetStructureManager();
    Folder* folder = structureManager->GetFolderAt(folderIndex);
    m_folderIndex = folderIndex;
    int shift = 0;
    for( int ui = 0; ui < folder->structCount; ui++)
    {
        if(folder->folderStructs[(ui+shift)] == -1)
        {
            shift++;
        }
        int i = folder->folderStructs[(ui+shift)];
        RNAStructure *strct = structureManager->GetStructure(i);
        AddStructure(strct->GetFilename(), i);
    }
    this->label(folder->folderName);
    /*sprintf(title, "Folder: %-.48s", structureManager->GetFolderAt(folderIndex)->folderName);
    label(title);*/
}