Revision 23839a6cb5c6ce1890674b83787f024bfdbf0c83 authored by Sergey Linev on 03 March 2015, 16:23:43 UTC, committed by Bertrand Bellenot on 04 March 2015, 08:35:14 UTC
1. Introduce central method where all kind of text drawings
   are handled. At this place decide which kind of rendering -
   plain text, simplify latex or normal MathJax is used
2. Implement correct size adjustment and alignment for
   all kinds of text output (with and without MathJax)
3. Support TMathText class - always MathJax will be used
4. Draw label in TPabeText
5. Avoid concurent calls of JSROOT.AssertPrerequisities

Signed-off-by: Bertrand Bellenot <bertrand.bellenot@cern.ch>
1 parent 3cb3124
Raw File
t1205.cxx
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (root-cint@cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/


#if defined(interp) && defined(makecint)
#pragma include "test.dll"
#else
#include "t1205.h"
#endif

// -----------------------------------------------------------------------

// lets create a derived stub
class DerivedStub : public Stub1  { 
 public:
  DerivedStub() {};
  void publicFunc1( DListIterator &iter ); 
};


void DerivedStub::publicFunc1(  DListIterator &iter ) {
  printf("Called DerivedStub::publicFunc1()\n");
}

// -----------------------------------------------------------------------

// Body of Stub1 member function
// giving definition to Stub1 virtual function
void Stub1::publicFunc1( DListIterator &iter ) {
  printf("Called Stub1::publicFunc1()\n");
}

// -----------------------------------------------------------------------


/////////////////////////////////////////////////////////////////////////
int main() 
{
  Compiled1 *pC1 = new Compiled1(); 
//  Stub1 *pS = new Stub1(); 
  DerivedStub *pDS = new DerivedStub(); 

  Helper *pHelper = new Helper(); 

  printf( "Calling compiled func (will call Virtual publicFunc1)\n" );

  pHelper->Execute( pC1 );
//  pHelper->Execute( pS );
  pHelper->Execute( pDS );

  delete pC1;
//  delete pS;
  delete pDS;

  delete pHelper;

  return 0;
}

back to top